ici_files/
lib.rs

1pub mod animated;
2pub mod changing;
3pub mod color;
4pub mod conversion;
5pub mod errors;
6pub mod file;
7pub mod image;
8pub mod jasc_palette;
9pub mod palette;
10pub mod scaling;
11pub mod wrapper;
12
13pub mod prelude {
14    pub use crate::animated::*;
15    pub use crate::changing::*;
16    pub use crate::color::*;
17    pub use crate::conversion::*;
18    pub use crate::errors::*;
19    pub use crate::image::*;
20    pub use crate::jasc_palette::*;
21    pub use crate::palette::FilePalette;
22    pub use crate::scaling::*;
23    pub use crate::wrapper::*;
24    pub use crate::*;
25}
26
27pub trait Tint {
28    /// Add to the RGBA channels by the amounts specified
29    ///
30    /// Channels are clamped to 0..=255
31    fn tint_add(&mut self, r_diff: isize, g_diff: isize, b_diff: isize, a_diff: isize);
32    /// Multiply the RGBA channels by the amounts specified
33    ///
34    /// Channels are clamped to 0..=255
35    fn tint_mul(&mut self, r_diff: f32, g_diff: f32, b_diff: f32, a_diff: f32);
36}