Struct nannou::draw::theme::Theme [−][src]
Expand description
A set of styling defaults used for coloring texturing geometric primitives that have no entry within the Draw’s inner ColorMap.
Fields
fill_color: Color
Fill color defaults.
stroke_color: Color
Stroke color defaults.
Implementations
Retrieve the non-linear sRGBA fill color representation for the given primitive.
Retrieve the linaer sRGBA fill color representation for the given primitive.
Retrieve the non-linear sRGBA stroke color representation for the given primitive.
Retrieve the linaer sRGBA stroke color representation for the given primitive.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Theme
impl UnwindSafe for Theme
Blanket Implementations
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
T: Component + Float,
Swp: WhitePoint,
Dwp: WhitePoint,
D: AdaptFrom<S, Swp, Dwp, T>,
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
T: Component + Float,
Swp: WhitePoint,
Dwp: WhitePoint,
D: AdaptFrom<S, Swp, Dwp, T>,
Mutably borrows from an owned value. Read more
Convert into T with values clamped to the color defined bounds Read more
Convert into T. The resulting color might be invalid in its color space Read more
Convert into T, returning ok if the color is inside of its defined range,
otherwise an OutOfBounds
error is returned which contains the unclamped color. Read more