pub struct Color(pub [f64; 3]);Expand description
A PDF color ([R, G, B]).
Rendering clips components to 0.0..=1.0, including infinities. NaN is
rendered as 0.0. Values already in range, including signed zero, are kept.
Tuple Fields§
§0: [f64; 3]Trait Implementations§
impl Copy for Color
Source§impl PartialOrd for Color
impl PartialOrd for Color
Source§impl Pixel for Color
impl Pixel for Color
Source§type Canvas = Canvas
type Canvas = Canvas
The type that stores an intermediate buffer before finalizing to a
concrete image
Source§fn default_color(color: ModuleColor) -> Self
fn default_color(color: ModuleColor) -> Self
Obtains the default pixel color when a module is dark or light.
Source§fn default_unit_size() -> (u32, u32)
fn default_unit_size() -> (u32, u32)
Obtains the default module size. The result must be at least 1×1.
impl StructuralPartialEq for Color
Auto Trait Implementations§
impl Freeze for Color
impl RefUnwindSafe for Color
impl Send for Color
impl Sync for Color
impl Unpin for Color
impl UnsafeUnpin for Color
impl UnwindSafe for Color
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