from chatting
This commit is contained in:
parent
18967133ff
commit
3cb35ddee1
1 changed files with 2 additions and 1 deletions
|
@ -132,7 +132,7 @@ proc parsePath*(path: string): Path =
|
||||||
number = $c
|
number = $c
|
||||||
of ' ', ',', '\r', '\n', '\t':
|
of ' ', ',', '\r', '\n', '\t':
|
||||||
finishDigit()
|
finishDigit()
|
||||||
else:
|
else: # TODO: ?
|
||||||
if command == Move and numbers.len == 2:
|
if command == Move and numbers.len == 2:
|
||||||
finishCommand()
|
finishCommand()
|
||||||
command = Line
|
command = Line
|
||||||
|
@ -619,6 +619,7 @@ proc fillPolygons*(
|
||||||
var colorWithAlpha = color
|
var colorWithAlpha = color
|
||||||
colorWithAlpha.a = uint8(clamp(a, 0, 1) * 255.0)
|
colorWithAlpha.a = uint8(clamp(a, 0, 1) * 255.0)
|
||||||
result[x, y] = colorWithAlpha
|
result[x, y] = colorWithAlpha
|
||||||
|
# TODO: don't double-clamp and can probably be unsafe?
|
||||||
|
|
||||||
{.pop.}
|
{.pop.}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue