pub struct BrighnessConstants {
pub offset: f64,
pub factor: f64,
}
Fields§
§offset: f64
adds this to the colour before multiplying Self::factor
.
Can be used to add contrast.
This is usually what you want.
factor: f64
Trait Implementations§
source§impl Clone for BrighnessConstants
impl Clone for BrighnessConstants
source§fn clone(&self) -> BrighnessConstants
fn clone(&self) -> BrighnessConstants
Returns a copy of the value. Read more