Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
11
Task/Bitmap/Lingo/bitmap.lingo
Normal file
11
Task/Bitmap/Lingo/bitmap.lingo
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
-- Creates a new image object of size 640x480 pixel and 32-bit color depth
|
||||
img = image(640, 480, 32)
|
||||
|
||||
-- Fills image with plain red
|
||||
img.fill(img.rect, rgb(255,0,0))
|
||||
|
||||
-- Gets the color value of the pixel at point (320, 240)
|
||||
col = img.getPixel(320, 240)
|
||||
|
||||
-- Changes the color of the pixel at point (320, 240) to black
|
||||
img.setPixel(320, 240, rgb(0,0,0))
|
||||
Loading…
Add table
Add a link
Reference in a new issue