Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 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