Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
18
Task/Bitmap/BASIC256/bitmap.basic
Normal file
18
Task/Bitmap/BASIC256/bitmap.basic
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
graphsize 30,30
|
||||
call fill(rgb(255,0,0))
|
||||
call setpixel(10,10,rgb(0,255,255))
|
||||
print "pixel 10,10 is " + pixel(10,10)
|
||||
print "pixel 20,20 is " + pixel(20,10)
|
||||
|
||||
imgsave "BASIC256_bitmap.png"
|
||||
end
|
||||
|
||||
subroutine fill(c)
|
||||
color c
|
||||
rect 0,0,graphwidth, graphheight
|
||||
end subroutine
|
||||
|
||||
subroutine setpixel(x,y,c)
|
||||
color c
|
||||
plot x,y
|
||||
end subroutine
|
||||
Loading…
Add table
Add a link
Reference in a new issue