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
16
Task/Draw-a-sphere/Lingo/draw-a-sphere.lingo
Normal file
16
Task/Draw-a-sphere/Lingo/draw-a-sphere.lingo
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
----------------------------------------
|
||||
-- Draw a circle
|
||||
-- @param {image} img
|
||||
-- @param {integer} x
|
||||
-- @param {integer} y
|
||||
-- @param {integer} r
|
||||
-- @param {integer} lineSize
|
||||
-- @param {color} drawColor
|
||||
----------------------------------------
|
||||
on circle (img, x, y, r, lineSize, drawColor)
|
||||
props = [:]
|
||||
props[#shapeType] = #oval
|
||||
props[#lineSize] = lineSize
|
||||
props[#color] = drawColor
|
||||
img.draw(x-r, y-r, x+r, y+r, props)
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue