Extend example text.nim

Set the font color. (Did not find this in the documentation.)
This commit is contained in:
Simon Krauter 2023-10-02 21:56:49 -03:00 committed by GitHub
parent 523b364fca
commit 2ef52dc880
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,6 +5,7 @@ image.fill(rgba(255, 255, 255, 255))
var font = readFont("examples/data/Roboto-Regular_1.ttf")
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."