Difference between revisions of "Igis-Ellipses"
From Coder Merlin
Line 14: | Line 14: | ||
[[File:Igis-Ellipse-rotated.png]] | [[File:Igis-Ellipse-rotated.png]] | ||
= Partial Ellipse = | |||
<syntaxhighlight lang="swift"> | |||
let partialEllipse = Ellipse(center:Point(x:155, y:200), radiusX:120, radiusY:55, rotation:0.0, | |||
startAngle:0.0, endAngle:(3.0/2.0)*Double.pi) | |||
canvas.paint(partialEllipse) | |||
</syntaxhighlight> | |||
[[File:Igis-Ellipse-partial.png]] |
Revision as of 20:14, 13 January 2019
Within these castle walls be forged Mavens of Computer Science ...
— Merlin, The Coder
Ellipse[edit]
let ellipse = Ellipse(center:Point(x:155, y:200), radiusX:120, radiusY:55)
canvas.paint(ellipse)
Rotated Ellipse[edit]
let rotatedEllipse = Ellipse(center:Point(x:155, y:200), radiusX:120, radiusY:55, rotation:(1.0/4.0)*Double.pi)
canvas.paint(rotatedEllipse)
Partial Ellipse[edit]
let partialEllipse = Ellipse(center:Point(x:155, y:200), radiusX:120, radiusY:55, rotation:0.0,
startAngle:0.0, endAngle:(3.0/2.0)*Double.pi)
canvas.paint(partialEllipse)