This commit is contained in:
Ryan Oldenburg 2022-06-05 22:51:37 -05:00
parent 7e483d4a7d
commit e8f72e4ae7

View file

@ -16,7 +16,7 @@ block:
timeIt "fillOverlaps":
doAssert path.fillOverlaps(vec2(1, 1)) == false
timeIt "roundedRect":
timeIt "roundedRect image":
const radius = 20
let path = newPath()
@ -25,3 +25,14 @@ timeIt "roundedRect":
let image = newImage(500, 300)
image.fillPath(path, rgba(0, 0, 0, 255))
timeIt "roundedRect mask":
const radius = 20
let path = newPath()
path.roundedRect(0.5, 0.5, 499, 299, radius, radius, radius, radius)
# path.roundedRect(0, 0, 500, 300, radius, radius, radius, radius)
let mask = newMask(500, 300)
mask.fillPath(path)