Skip to content

class Celestine::Path
inherits Celestine::Drawable #

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

Included modules

Celestine::Modules::Animate Celestine::Modules::Animate::Motion Celestine::Modules::Animate::Transform Celestine::Modules::Filter Celestine::Modules::Marker Celestine::Modules::Mask Celestine::Modules::StrokeFill Celestine::Modules::Transform

Constants#

TAG = "path" #

Methods#

#a_arc(x, y, rx, ry, rotation = 0, large = false, flip = false) #

View source

#a_bcurve(cx1, cy1, cx2, cy2, x, y) #

View source

#a_h_line(x) #

Draws a horizontal line to an absolute point

View source

#a_line(x, y) #

Draws a line to an absolute point

View source

#a_move(x, y) #

Moves to an absolute point

View source

#a_q_bcurve(cx, cy, x, y) #

View source

#a_s_bcurve(cx2, cy2, x, y) #

View source

#a_t_bcurve(x, y) #

View source

#a_v_line(y) #

Draws a vertical line to an absolute point

View source

#close #

Closes the path.

View source

#code #

Finalized path code points.

View source

#code=(other : String) #

View source

#draw(io : IO) : Nil #

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

View source

#r_arc(x, y, rx, ry, rotation = 0, large = false, flip = false) #

View source

#r_bcurve(cx1, cy1, cx2, cy2, x, y) #

View source

#r_h_line(x) #

Draws a horizontal line to a relative point

View source

#r_line(x, y) #

Draws a line to a relative point

View source

#r_move(x, y) #

Moves to a relative point

View source

#r_q_bcurve(cx, cy, x, y) #

View source

#r_s_bcurve(cx2, cy2, x, y) #

View source

#r_t_bcurve(x, y) #

View source

#r_v_line(y) #

Draws a vertical line to a relative point

View source