Struct rayon_logs::Rectangle [−][src]
pub struct Rectangle { pub color: [f32; 3], pub opacity: f32, pub x: f64, pub y: f64, pub width: f64, pub height: f64, pub animation: Option<(u64, u64)>, }
Tasks are animated as a set of rectangles.
Fields
color: [f32; 3]
color (rgb+alpha)
opacity: f32
opacity
x: f64
x coordinate
y: f64
y coordinate
width: f64
width
height: f64
height
animation: Option<(u64, u64)>
when animation starts and ends (if any)
Methods
impl Rectangle
[src]
impl Rectangle
pub fn new(
color: [f32; 3],
opacity: f32,
position: (f64, f64),
sizes: (f64, f64),
animation: Option<(u64, u64)>
) -> Rectangle
[src]
pub fn new(
color: [f32; 3],
opacity: f32,
position: (f64, f64),
sizes: (f64, f64),
animation: Option<(u64, u64)>
) -> Rectangle
Creates a new rectangle