Draw a sphere: Difference between revisions

Lingo added
(Tried to add image to Maple)
(Lingo added)
Line 2,065:
One way to view the output as an image is to point your browser to the generated SVG.
 
=={{header|Lingo}}==
<lang lingo>----------------------------------------
-- 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</lang>
 
=={{header|Logo}}==
Anonymous user