class

Celestine::Path

Inherits Celestine::Modules::Animate::Transform / Celestine::Modules::Animate::Motion / Celestine::Modules::Animate / Celestine::Modules::Marker / Celestine::Modules::Filter / Celestine::Modules::Mask / Celestine::Modules::Transform / Celestine::Modules::StrokeFill / Celestine::Drawable / Reference / Object

A class which represents an SVG path. Methods starting with a_ use absolute coordinates, while r_ methods require relative coordinates.

Constants

TAG = "path"

Instance methods

a_arc(x, y, rx, ry, rotation = 0, large = false, flip = false)
Source
a_bcurve(cx1, cy1, cx2, cy2, x, y)
Source
a_h_line(x)

Draws a horizontal line to an absolute point

Source
a_line(x, y)

Draws a line to an absolute point

Source
a_move(x, y)

Moves to an absolute point

Source
a_q_bcurve(cx, cy, x, y)
Source
a_s_bcurve(cx2, cy2, x, y)
Source
a_t_bcurve(x, y)
Source
a_v_line(y)

Draws a vertical line to an absolute point

Source
close

Closes the path.

Source
code

Finalized path code points.

Source
code=(other : String)
Source
draw(io : IO) : Nil

Main draw method for a drawable. Takes in and interacts with an io.

Source
r_arc(x, y, rx, ry, rotation = 0, large = false, flip = false)
Source
r_bcurve(cx1, cy1, cx2, cy2, x, y)
Source
r_h_line(x)

Draws a horizontal line to a relative point

Source
r_line(x, y)

Draws a line to a relative point

Source
r_move(x, y)

Moves to a relative point

Source
r_q_bcurve(cx, cy, x, y)
Source
r_s_bcurve(cx2, cy2, x, y)
Source
r_t_bcurve(x, y)
Source
r_v_line(y)

Draws a vertical line to a relative point

Source

Nested types