summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorFox Caminiti <fox@foxcam.net>2023-01-06 17:44:22 -0500
committerFox Caminiti <fox@foxcam.net>2023-01-06 17:44:22 -0500
commit84d04d391bc4bf9481106d4f5ac4d3dd8f27ed87 (patch)
treeba91aaf8a4245b939b4d04aca66cd0c5bb5687c0 /src/include
parent1de48570b220acc1ca7063e2a9cda1e89178c0f9 (diff)
round edges
Diffstat (limited to 'src/include')
-rw-r--r--src/include/main.h7
-rw-r--r--src/include/my_math.h1
2 files changed, 6 insertions, 2 deletions
diff --git a/src/include/main.h b/src/include/main.h
index db384ce..7d3299e 100644
--- a/src/include/main.h
+++ b/src/include/main.h
@@ -188,9 +188,10 @@ struct shape_options {
int Visibility;
v4 FillCol = {1, 1, 1, 1};
v4 StrokeCol = {0, 1, 0, 1};
- float StrokeWidth = 10;
+ float StrokeWidth = 25;
nvg_line_cap LineJoinType = NVG_ROUND;
nvg_line_cap LineCapType = NVG_ROUND;
+ real32 Roundness;
};
struct shape_layer {
@@ -248,7 +249,8 @@ char *ToolName[] {
"Move",
"Crop",
"Brush",
- "Pen"
+ "Pen",
+ "Square"
};
enum tool {
@@ -256,6 +258,7 @@ enum tool {
tool_crop,
tool_brush,
tool_pen,
+ tool_square,
tool_count
};
diff --git a/src/include/my_math.h b/src/include/my_math.h
index 865f11c..72c6b99 100644
--- a/src/include/my_math.h
+++ b/src/include/my_math.h
@@ -1,4 +1,5 @@
#define PI 3.141592653589793238
+#define KAPPA 0.5522847493f
union v2
{