[main page] [download] [links] [faq] [sample programs]


grtext

Text-in-a-box. Text geometry comparison test (ps2 vs opengl)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
open window 640, 512
setrgb 0, 0, 0, 0
clear window

setrgb 1, 0, 100, 0
fill rectangle 0, 288, 639, 305

setrgb 1, 0, 0, 255
fill rectangle 0, 288, 639, 300

setrgb 1, 255, 255, 255
text$ = "ijgGIJMM`XXXMMM"
text 0,300, text$, "lb"

setrgb 1, 0, 255, 255
text$ = "1234567890123456789012345678901234567890123456789012345678901234567"
text 0,500, text$, "lb"

setrgb 1, 0, 255, 255
text$ = "0000000000111111111122222222223333333333444444444455555555556666"
text 0,450, text$, "lb"

setrgb 1, 255, 0, 255
text$ = "1234567890123456789012345678901234567890123456789012345678901234"
text 640,400, text$, "rb"

setrgb 1, 255, 0,  255
text$ = "0000000000111111111122222222223333333333444444444455555555556666"
text 640,350, text$, "rb"

rem a$ = inkey$


[main page] [download] [links] [faq] [sample programs]

© 2001 P.B. IJdens, The Netherlands. All rights reserved.