MaterialColorPalette
struct · ferroui-controls-color-picker · v0.5.0
struct MaterialColorPalette
Implements a reduced version of the 2014 Material Design color palette.
This palette is based on the one outlined here:
https://material.io/design/color/the-color-system.html#tools-for-picking-colors
In order to make the palette uniform and rectangular the following alterations were made:
- The A100-A700 shades of each color are excluded. These shades do not exist for all colors (brown/gray).
- Black/White are stand-alone and are also excluded.
Members
new
fn new() -> Self
Initializes a new instance of the MaterialColorPalette class.
init_color_chart
fn init_color_chart(self: &Self)
Initializes all color chart colors.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyAnyValueClassDefaultsErasedDestructorIntoEitherDebugDefaultIColorPalettePartialEqMarkupTyped
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.