Trait pixels_graphics_lib::Tint
source ·
[−]pub trait Tint {
fn tint_add(
&mut self,
r_diff: isize,
g_diff: isize,
b_diff: isize,
a_diff: isize
);
fn tint_mul(&mut self, r_diff: f32, g_diff: f32, b_diff: f32, a_diff: f32);
}
Required methods
Add to the RGBA channels by the amounts specified
Channels are clamped to 0..=255