class SvgPathify::Shapes::Circle

Public Instance Methods

path_commands() click to toggle source
# File lib/svg_pathify/shapes/circle.rb, line 9
def path_commands
  [
    "M#{cx} #{cy}",
    "m#{-r} 0",
    "a#{r},#{r} 0 1,0 #{r * 2},0",
    "a#{r},#{r} 0 1,0 -#{r * 2},0",
    "Z"
  ].join
end