Method: Pixelart::Vector#path
- Defined in:
- lib/pixelart/vector.rb
#path(stroke: '#000000', fill: nil) ⇒ Object
note: default stroke (color) to black (#000000) for now - why? why not?
90 91 92 93 94 95 |
# File 'lib/pixelart/vector.rb', line 90 def path( stroke: '#000000', fill: nil ) path = Path.new( stroke: stroke, fill: fill ) @shapes << path path ## note: MUST return "inner" path shape for chaining "dsl-like" methods / commands end |