Difference between revisions of "Igis-Ellipses"

From Coder Merlin
(Created page with "<syntaxhighlight lang="swift"> let ellipse = Ellipse(center:Point(x:155, y:200), radiusX:120, radiusY:55)...")
 
m (Updated syntax)
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
= Ellipse =
<syntaxhighlight lang="swift">
<syntaxhighlight lang="swift">
        let ellipse = Ellipse(center:Point(x:155, y:200), radiusX:120, radiusY:55)                                                                                                                                                                                                                                                                           
let ellipse = Ellipse(center:Point(x:155, y:200), radiusX:120, radiusY:55)                                                                                                                                                                                                                                                                           
        canvas.paint(ellipse)                                                                                                                                                                                                                                                                                                                               
canvas.render(ellipse)                                                                                                                                                                                                                                                                                                                               
</syntaxhighlight>
</syntaxhighlight>


[[File:Igis-Ellipse-whole.png]]
[[File:Igis-Ellipse-whole.png]]
= Rotated Ellipse =
<syntaxhighlight lang="swift">
let rotatedEllipse = Ellipse(center:Point(x:155, y:200), radiusX:120, radiusY:55, rotation (1.0/4.0)*Double.pi)
canvas.render(rotatedEllipse)
</syntaxhighlight>
[[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.render(partialEllipse)
</syntaxhighlight>
[[File:Igis-Ellipse-partial.png]]

Latest revision as of 23:37, 5 December 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.render(ellipse)

Igis-Ellipse-whole.png

Rotated Ellipse[edit]

let rotatedEllipse = Ellipse(center:Point(x:155, y:200), radiusX:120, radiusY:55, rotation (1.0/4.0)*Double.pi)
canvas.render(rotatedEllipse)

Igis-Ellipse-rotated.png

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.render(partialEllipse)

Igis-Ellipse-partial.png