From 3cb35ddee1f523393daa35178bc670463f02aafe Mon Sep 17 00:00:00 2001 From: Ryan Oldenburg Date: Tue, 1 Dec 2020 21:14:15 -0600 Subject: [PATCH] from chatting --- src/pixie/paths.nim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pixie/paths.nim b/src/pixie/paths.nim index 621f567..dc3fcc1 100644 --- a/src/pixie/paths.nim +++ b/src/pixie/paths.nim @@ -132,7 +132,7 @@ proc parsePath*(path: string): Path = number = $c of ' ', ',', '\r', '\n', '\t': finishDigit() - else: + else: # TODO: ? if command == Move and numbers.len == 2: finishCommand() command = Line @@ -619,6 +619,7 @@ proc fillPolygons*( var colorWithAlpha = color colorWithAlpha.a = uint8(clamp(a, 0, 1) * 255.0) result[x, y] = colorWithAlpha + # TODO: don't double-clamp and can probably be unsafe? {.pop.}