mirror of
https://github.com/zekexiao/pocketlang.git
synced 2025-02-06 04:37:47 +08:00
20 lines
322 B
Plaintext
20 lines
322 B
Plaintext
|
|
## Run pocket palette.pk > palette.ppm
|
|
## Open palatte.ppm with any image viwer which support ppm image
|
|
## (ex: photoshop, gimp, libre office draw, ...)
|
|
|
|
blue = 200
|
|
|
|
print("P3")
|
|
print(255, 255)
|
|
print(255)
|
|
|
|
from lang import write
|
|
for r in 0..255
|
|
for g in 0..255
|
|
write(r, ' ', g, ' ', blue, ' ')
|
|
end
|
|
write('\n')
|
|
end
|
|
|