Module: Sunniesnow::Tools
- Defined in:
- lib/sscharter/tools.rb,
lib/sscharter/tools/svg_path.rb
Defined Under Namespace
Modules: SvgPath
Class Method Summary collapse
-
.path(data, *args) {|x, y, i| ... } ⇒ SvgPath::Path
Turn any SVG path into uniformly sampled points.
Class Method Details
.path(data, range, total = range.end, &block) ⇒ SvgPath::Path .path(data, range_end, total = range_end, &block) ⇒ SvgPath::Path
Turn any SVG path into uniformly sampled points.
544 545 546 547 548 |
# File 'lib/sscharter/tools/svg_path.rb', line 544 module_function def path data, *args, &block result = SvgPath::Path.new data result.samples *args, &block if block result end |