Home
last modified time | relevance | path

Searched refs:n_alpha (Results 1 – 2 of 2) sorted by relevance

/StarryEngine/starry_client/src/base/
H A Drenderer.rs65 let n_alpha = 255 - alpha; in pixel() localVariable
66 let rb = ((n_alpha * (*old_color & 0x00FF00FF)) in pixel()
69 let ag = (n_alpha * ((*old_color & 0xFF00FF00) >> 8)) in pixel()
208 let n_alpha = 255 - alpha; in image_fast() localVariable
209 let rb = ((n_alpha * (*old & 0x00FF00FF)) in image_fast()
212 let ag = (n_alpha * ((*old & 0xFF00FF00) >> 8)) in image_fast()
/StarryEngine/starry_server/src/base/
H A Dimage.rs142 let n_alpha = 255 - alpha; in blend() localVariable
144 let o_r = (((old.data >> 16) & 0xFF) * n_alpha) >> 8; in blend()
145 let o_g = (((old.data >> 8) & 0xFF) * n_alpha) >> 8; in blend()
146 let o_b = ((old.data & 0xFF) * n_alpha) >> 8; in blend()