about summary refs log tree commit diff stats
path: root/src/img/painter.nim
diff options
context:
space:
mode:
Diffstat (limited to 'src/img/painter.nim')
-rw-r--r--src/img/painter.nim4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/img/painter.nim b/src/img/painter.nim
index c4aef549..8296b744 100644
--- a/src/img/painter.nim
+++ b/src/img/painter.nim
@@ -9,6 +9,10 @@ import types/color
 import types/line
 import types/vector
 
+type CanvasFillRule* = enum
+  NON_ZERO = "nonzero"
+  EVEN_ODD = "evenodd"
+
 # https://en.wikipedia.org/wiki/Bresenham's_line_algorithm#All_cases
 proc plotLineLow(bmp: Bitmap, x0, y0, x1, y1: int64, color: RGBAColor) =
   var dx = x1 - x0