morepretty

This commit is contained in:
Ryan Oldenburg 2021-12-11 23:24:00 -06:00
parent ecdf9f2f7e
commit 720e5ae019
2 changed files with 9 additions and 7 deletions

View file

@ -1,7 +1,7 @@
## Load and Save SVG files. ## Load and Save SVG files.
import cairo, chroma, pixie/common, pixie/images, pixie/paints, pixie/paths {.all.}, import cairo, chroma, pixie/common, pixie/images, pixie/paints,
strutils, tables, vmath, xmlparser, xmltree pixie/paths {.all.}, strutils, tables, vmath, xmlparser, xmltree
include pixie/paths include pixie/paths

View file

@ -2103,7 +2103,9 @@ when defined(pixieSweeps):
line.winding = s[1] line.winding = s[1]
return line return line
proc intersectsYLine(y: float32, s: Segment, atx: var float32): bool {.inline.} = proc intersectsYLine(
y: float32, s: Segment, atx: var float32
): bool {.inline.} =
let let
s2y = s.to.y - s.at.y s2y = s.to.y - s.at.y
denominator = -s2y denominator = -s2y