1
use easygpu_lyon::lyon_tessellation::FillOptions;
2

            
3
use crate::color::Color;
4

            
5
/// Shape fill options.
6
9
#[derive(Default, Clone, Debug)]
7
pub struct Fill {
8
    /// The color to fill.
9
    pub color: Color,
10
    /// The options to use while filling.
11
    pub options: FillOptions,
12
}
13

            
14
impl Fill {
15
    /// Returns a solid fill of `color` with default options.
16
    #[must_use]
17
3
    pub fn new(color: Color) -> Self {
18
3
        Self {
19
3
            color,
20
3
            options: FillOptions::default(),
21
3
        }
22
3
    }
23
}