Skip to content

Commit

Permalink
Extend example text.nim
Browse files Browse the repository at this point in the history
Set the font color. (Did not find this in the documentation.)
  • Loading branch information
simonkrauter authored Oct 3, 2023
1 parent 523b364 commit 2ef52dc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions examples/text.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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."

Expand Down

0 comments on commit 2ef52dc

Please sign in to comment.