Update 'chr'
20
chr.md
20
chr.md
@@ -9,16 +9,18 @@ El codi ascii del que volem obtindre el caracter.
|
||||
### Exemple
|
||||
```
|
||||
function init()
|
||||
cls()
|
||||
print(tostr(0),0,0)
|
||||
print(tostr(8.4),0,1)
|
||||
print(tostr(-65),0,2)
|
||||
print(tostr(0xff),0,3)
|
||||
setmode(2)
|
||||
end
|
||||
|
||||
print(0,0,5)
|
||||
print(8.4,0,6)
|
||||
print(-65,0,7)
|
||||
print(0xff,0,8)
|
||||
function update()
|
||||
cls()
|
||||
for y=0,14 do
|
||||
for x=0,19 do
|
||||
locate(x,y)
|
||||
color(rnd(16),rnd(16))
|
||||
print(chr(rnd(256)))
|
||||
end
|
||||
end
|
||||
end
|
||||
```
|
||||
### Vore també
|
||||
|
||||
Reference in New Issue
Block a user