f
This commit is contained in:
parent
e7f436571d
commit
343e82e185
1 changed files with 0 additions and 32 deletions
|
@ -136,14 +136,6 @@ proc doDiff(rendered: Image, name: string) =
|
|||
echo &"{name} score: {diffScore}"
|
||||
diffImage.writeFile(&"tests/images/diffs/{name}.png")
|
||||
|
||||
# block:
|
||||
# let
|
||||
# image = newImage(100, 100)
|
||||
# path = newPath()
|
||||
# path.rect(0, 0, 99, 99)
|
||||
# image.fillPath(path, rgba(0, 0, 0, 255), translate(vec2(0.5, 0.5)))
|
||||
# doDiff(image, "smooth1")
|
||||
|
||||
block:
|
||||
let
|
||||
a = newImage(100, 100)
|
||||
|
@ -153,18 +145,6 @@ block:
|
|||
a.draw(b, translate(vec2(0.5, 0.5)))
|
||||
doDiff(a, "smooth1")
|
||||
|
||||
# block:
|
||||
# let
|
||||
# a = newImage(100, 100)
|
||||
# b = newImage(100, 100)
|
||||
# path = newPath()
|
||||
# path.rect(-25, -25, 50, 50)
|
||||
# path.transform(rotate(45 * PI.float32 / 180))
|
||||
# b.fillPath(path, rgba(0, 0, 0, 255), translate(vec2(50, 50)))
|
||||
# a.fill(rgba(255, 255, 255, 255))
|
||||
# a.draw(b, translate(vec2(0, 0.4)))
|
||||
# doDiff(a, "smooth2")
|
||||
|
||||
block:
|
||||
let
|
||||
a = newImage(100, 100)
|
||||
|
@ -174,18 +154,6 @@ block:
|
|||
a.draw(b, translate(vec2(14.64, 50.4)) * rotate(45.toRadians))
|
||||
doDiff(a, "smooth2")
|
||||
|
||||
# block:
|
||||
# let
|
||||
# a = newImage(100, 100)
|
||||
# b = newImage(100, 100)
|
||||
# path = newPath()
|
||||
# path.rect(-25, -25, 50, 50)
|
||||
# path.transform(rotate(45 * PI.float32 / 180))
|
||||
# b.fillPath(path, rgba(0, 0, 0, 255), translate(vec2(50, 50)))
|
||||
# a.fill(rgba(255, 255, 255, 255))
|
||||
# a.draw(b, translate(vec2(0, 0.4)))
|
||||
# doDiff(a, "smooth2")
|
||||
|
||||
block:
|
||||
let
|
||||
a = newImage(100, 100)
|
||||
|
|
Loading…
Reference in a new issue