Extend example text.nim
Set the font color. (Did not find this in the documentation.)
This commit is contained in:
parent
523b364fca
commit
2ef52dc880
|
@ -5,6 +5,7 @@ image.fill(rgba(255, 255, 255, 255))
|
||||||
|
|
||||||
var font = readFont("examples/data/Roboto-Regular_1.ttf")
|
var font = readFont("examples/data/Roboto-Regular_1.ttf")
|
||||||
font.size = 20
|
font.size = 20
|
||||||
|
font.paint.color = color(1, 0, 0)
|
||||||
|
|
||||||
let text = "Typesetting is the arrangement and composition of text in graphic design and publishing in both digital and traditional medias."
|
let text = "Typesetting is the arrangement and composition of text in graphic design and publishing in both digital and traditional medias."
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue