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§
impl Copy for ColorMode
impl Eq for ColorMode
impl StructuralPartialEq for ColorMode
Auto Trait Implementations§
impl Freeze for ColorMode
impl RefUnwindSafe for ColorMode
impl Send for ColorMode
impl Sync for ColorMode
impl Unpin for ColorMode
impl UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.