Skip to content

Commit e3cd6e0

Browse files
authored
Clarify readme example, remove depreciated syntax
1 parent 6e3e7d6 commit e3cd6e0

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+
fontsize = 10
22+
x0, y0 = 90, 10
23+
renderstring!(myarray, "hello", face, fontsize, x0, y0, halign=:hright)
2224
```
2325

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

0 commit comments

Comments
 (0)