morepretty
This commit is contained in:
parent
fdef525352
commit
8c9daadd04
3 changed files with 6 additions and 4 deletions
|
@ -385,7 +385,7 @@ proc clearRect*(ctx: Context, rect: Rect) =
|
||||||
let path = newPath()
|
let path = newPath()
|
||||||
path.rect(rect)
|
path.rect(rect)
|
||||||
if ctx.layer != nil:
|
if ctx.layer != nil:
|
||||||
ctx.layer.fillPath( path, paint, ctx.mat)
|
ctx.layer.fillPath(path, paint, ctx.mat)
|
||||||
else:
|
else:
|
||||||
ctx.image.fillPath(path, paint, ctx.mat)
|
ctx.image.fillPath(path, paint, ctx.mat)
|
||||||
|
|
||||||
|
|
|
@ -154,7 +154,9 @@ block:
|
||||||
let image = newImage(200, 100)
|
let image = newImage(200, 100)
|
||||||
image.fill(rgba(255, 255, 255, 255))
|
image.fill(rgba(255, 255, 255, 255))
|
||||||
image.fillText(font, "First line")
|
image.fillText(font, "First line")
|
||||||
image.fillText(font, "Second line", translate(vec2(0, font.defaultLineHeight)))
|
image.fillText(
|
||||||
|
font, "Second line", translate(vec2(0, font.defaultLineHeight))
|
||||||
|
)
|
||||||
|
|
||||||
doDiff(image, "basic7")
|
doDiff(image, "basic7")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue