forked from AbleOS/ableos
17 lines
457 B
Plaintext
17 lines
457 B
Plaintext
|
.{random} := @use("../../../../libraries/stn/src/lib.hb")
|
||
|
render := @use("../../../../libraries/render/src/lib.hb")
|
||
|
|
||
|
example := fn(): void {
|
||
|
render.init()
|
||
|
render.doublebuffer(false)
|
||
|
render.clear(render.black)
|
||
|
loop {
|
||
|
x := random.integer_range(0, 1024)
|
||
|
y := random.integer_range(0, 768)
|
||
|
r := random.integer_range(0, 255)
|
||
|
g := random.integer_range(0, 75)
|
||
|
b := random.integer_range(0, 155)
|
||
|
render.put_pixel(.(x, y), .(b, g, r, 255))
|
||
|
}
|
||
|
return
|
||
|
}
|