Add tasks for all the new languages
This commit is contained in:
parent
9dc3c2bb62
commit
bba7bfd280
13208 changed files with 134745 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