logo
macro_rules! primitive_style {
    ($($style_key:ident = $style_value:expr ),* $(,)?) => { ... };
}
Expand description

Create a PrimitiveStyle

All properties on PrimitiveStyle are supported. Any properties not specified in the macro call will use the values provided by PrimitiveStyle::default().

use embedded_graphics::{
    pixelcolor::{Rgb565, RgbColor},
    primitive_style,
};

let style = primitive_style!(fill_color = Rgb565::RED);