plottery_editor 0.7.0

Graphical Editor of Plottery, a creative coding framework for generative vector graphics and pen plotting.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use dioxus::prelude::*;
use plottery_lib::V2;

#[derive(PartialEq, Props, Clone)]
pub struct PlotterPositionProps {
    location: V2,
}

#[component]
pub fn PlotterPosition(props: PlotterPositionProps) -> Element {
    let location_text = format!("X: {:.2}, Y: {:.2}", props.location.x, props.location.y);
    rsx! {
        p {"{location_text}"}
    }
}