From 84d04d391bc4bf9481106d4f5ac4d3dd8f27ed87 Mon Sep 17 00:00:00 2001 From: Fox Caminiti Date: Fri, 6 Jan 2023 17:44:22 -0500 Subject: round edges --- src/include/main.h | 7 +++++-- src/include/my_math.h | 1 + 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'src/include') 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 { -- cgit v1.2.3