celestinecr / celestine

An SVG library written in Crystal. Can be used to make cool animations, as well as other kinds of uses.
MIT License
92 stars 9 forks source link

v0.7.1alpha - Added nested SVG #20

Closed sol-vin closed 3 years ago

sol-vin commented 3 years ago

Now you can nest SVG like:

Celestine.draw do |ctx|
  ctx.svg do |svg_doc|
    svg_doc.svg do |svg_doc2|
      svg_doc2
    end
    svg_doc
  end
end

This means no more Celestine::Meta::Context as an object

Yipee!