Home
last modified time | relevance | path

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

/StarryEngine/starry_client/src/base/
H A Drenderer.rs57 let alpha = (new_color >> 24) & 0xFF; in pixel() localVariable
60 if alpha >= 255 || replace { in pixel()
64 else if alpha > 0 { in pixel()
65 let n_alpha = 255 - alpha; in pixel()
67 + (alpha * (new_color & 0x00FF00FF))) in pixel()
70 + (alpha * (0x01000000 | ((new_color & 0x0000FF00) >> 8))); in pixel()
202 let alpha = (new >> 24) & 0xFF; in image_fast() localVariable
203 if alpha > 0 && (start + k) < window_data.len() && (start + k) < stop { in image_fast()
205 if alpha >= 255 { in image_fast()
208 let n_alpha = 255 - alpha; in image_fast()
[all …]
/StarryEngine/starry_server/src/base/
H A Dimage.rs134 let alpha = (new.data >> 24) & 0xFF; in blend() localVariable
135 if alpha >= 255 { in blend()
137 } else if alpha > 0 { in blend()
138 let n_r = (((new.data >> 16) & 0xFF) * alpha) >> 8; in blend()
139 let n_g = (((new.data >> 8) & 0xFF) * alpha) >> 8; in blend()
140 let n_b = ((new.data & 0xFF) * alpha) >> 8; in blend()
142 let n_alpha = 255 - alpha; in blend()