Enum avenger_glyphon::ColorMode
source · pub enum ColorMode {
Accurate,
Web,
}Expand description
The color mode of an [Atlas].
Variants§
Accurate
Accurate color management.
This mode will use a proper sRGB texture for colored glyphs. This will produce physically accurate color blending when rendering.
Web
Web color management.
This mode reproduces the color management strategy used in the Web and implemented by browsers.
This entails storing glyphs colored using the sRGB color space in a linear RGB texture. Blending will not be physically accurate, but will produce the same results as most UI toolkits.
This mode should be used to render to a linear RGB texture containing sRGB colors.
Trait Implementations§
source§impl PartialEq for ColorMode
impl PartialEq for ColorMode
impl Copy for ColorMode
impl Eq for ColorMode
impl StructuralPartialEq for ColorMode
Auto Trait Implementations§
impl RefUnwindSafe for ColorMode
impl Send for ColorMode
impl Sync for ColorMode
impl Unpin for ColorMode
impl UnwindSafe for ColorMode
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.