Skip to content

Commit f58c474

Browse files
authored
Merge pull request #46 from rafaqz/master
Clarify readme example, remove depreciated syntax
2 parents 6e3e7d6 + 40239a8 commit f58c474

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,10 @@ face = FTFont("hack_regular.ttf")
1717
img, metric = renderface(face, 'C')
1818

1919
# render a string into an existing matrix
20-
myarray = zeros(UInt8,100,100)
21-
renderstring!(myarray, "hello", face, (10,10), 90, 10, halign=:hright)
20+
myarray = zeros(UInt8, 100, 100)
21+
pixelsize = 10
22+
x0, y0 = 90, 10
23+
renderstring!(myarray, "hello", face, pixelsize, x0, y0, halign=:hright)
2224
```
2325

2426
credits to @aaalexandrov from whom most of the early code comes.

0 commit comments

Comments
 (0)