Skip to content

Commit 79557e1

Browse files
committed
add diamond
1 parent 42b1955 commit 79557e1

6 files changed

Lines changed: 1442 additions & 502 deletions

File tree

src/drawing.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ pub enum Tool {
44
Line,
55
Rectangle,
66
Circle,
7+
Diamond,
78
Arrow,
89
Text,
910
Eraser,
@@ -47,6 +48,14 @@ pub enum DrawingElement {
4748
stroke_width: f32,
4849
rough_style: Option<crate::rough::RoughOptions>,
4950
},
51+
Diamond {
52+
position: [f32; 2],
53+
size: [f32; 2],
54+
color: [f32; 4],
55+
fill: bool,
56+
stroke_width: f32,
57+
rough_style: Option<crate::rough::RoughOptions>,
58+
},
5059
Arrow {
5160
start: [f32; 2],
5261
end: [f32; 2],

0 commit comments

Comments
 (0)