mirror of
https://github.com/aNNiMON/Own-Programming-Language-Tutorial.git
synced 2024-09-20 16:54:21 +03:00
18 lines
264 B
Plaintext
18 lines
264 B
Plaintext
|
use "std"
|
||
|
use "canvas"
|
||
|
|
||
|
w = 800 h = 600
|
||
|
window("canvas example 2", w, h);
|
||
|
color(#ffffff)
|
||
|
frect(0, 0, w, h)
|
||
|
|
||
|
step = rand(20)
|
||
|
color(#0000ff)
|
||
|
for y = 0, y < h, y = y + step {
|
||
|
line(0, y, w, y)
|
||
|
}
|
||
|
for x = 0, x < w, x = x + step {
|
||
|
line(x, 0, x, h)
|
||
|
}
|
||
|
repaint();
|