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