This commit is contained in:
Ryan Oldenburg 2022-06-26 22:46:49 -05:00
parent ce062a5949
commit cf70022144

View file

@ -194,6 +194,8 @@ block:
surface = imageSurfaceCreate(FORMAT_ARGB32, 900, 900) surface = imageSurfaceCreate(FORMAT_ARGB32, 900, 900)
ctx = surface.create() ctx = surface.create()
ctx.setLineWidth(1)
timeIt "[cairo] " & benchmark.name: timeIt "[cairo] " & benchmark.name:
for fill in benchmark.fills: for fill in benchmark.fills:
if fill.shapes.len > 0: if fill.shapes.len > 0:
@ -221,6 +223,7 @@ block:
FillRuleEvenOdd FillRuleEvenOdd
) )
ctx.fill() ctx.fill()
# ctx.stroke()
# discard surface.writeToPng(("cairo_" & benchmark.name & ".png").cstring) # discard surface.writeToPng(("cairo_" & benchmark.name & ".png").cstring)
@ -242,5 +245,11 @@ block:
fill.transform, fill.transform,
fill.windingRule fill.windingRule
) )
# image.strokePath(
# p,
# fill.paint,
# fill.transform,
# 1
# )
# image.writeFile("pixie_" & benchmark.name & ".png") # image.writeFile("pixie_" & benchmark.name & ".png")