Enum flo_canvas::PathOp
source · pub enum PathOp {
NewPath,
Move(f32, f32),
Line(f32, f32),
BezierCurve(((f32, f32), (f32, f32)), (f32, f32)),
ClosePath,
}
Expand description
Operations that define paths
Variants§
NewPath
Begins a new path
Move(f32, f32)
Move to a new point
Line(f32, f32)
Line to point
BezierCurve(((f32, f32), (f32, f32)), (f32, f32))
Bezier curve to point
ClosePath
Closes the current subpath
Trait Implementations§
source§impl<'de> Deserialize<'de> for PathOp
impl<'de> Deserialize<'de> for PathOp
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more