Searched refs:alpha (Results 1 – 2 of 2) sorted by relevance
57 let alpha = (new_color >> 24) & 0xFF; in pixel() localVariable60 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() localVariable203 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 …]
134 let alpha = (new.data >> 24) & 0xFF; in blend() localVariable135 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()