Sha256: f3719bbfb81d00e5baba52512c067e529d037f74921a206ba0dbdef6bc4a32ec

Contents?: true

Size: 1.2 KB

Versions: 25

Compression:

Stored size: 1.2 KB

Contents

# frozen_string_literal: true


svg_content = <<-SVG
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="1024" height="1024"  xml:space="preserve" id="colorCanvas">
<!-- Generated by jeezs - http://www.atome.one
<path d="M150 0 L75 200 L225 200 Z" stroke="red" stroke-width="37" fill="white" />
<circle id="colorCanvas-oval" stroke="none" fill="rgb(255, 0, 0)" cx="274" cy="306" r="198" />
<circle id="colorCanvas-oval2" stroke="none" fill="rgb(0, 142, 255)" cx="767" cy="306" r="198" />
<circle id="colorCanvas-oval3" stroke="none" fill="rgb(50, 255, 0)" cx="499" cy="702" r="198" />
<ellipse id="colorCanvas-ellipse" stroke="black" stroke-width="5" fill="yellow" cx="512.5" cy="256" rx="150" ry="100" />
<rect id="colorCanvas-rect" stroke="green" stroke-width="5" fill="blue" x="100" y="500.7" width="300" height="150" />
<line id="colorCanvas-line" stroke="purple" stroke-width="110" x1="50" y1="800" x2="300.6" y2="950" />
<polygon id="colorCanvas-polygon" stroke="orange" stroke-width="7.2" fill="none" points="800,400 700,600 900,600" />
</svg>
SVG

v = vector({width: 333, height: 333})
atome_content = A.vectorizer(svg_content)
puts atome_content
v.data(atome_content)

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
atome-0.5.7.0.7 vendor/assets/application/examples/svg_vectorizer.rb
atome-0.5.7.0.5 vendor/assets/application/examples/svg_vectorizer.rb
atome-0.5.7.0.4 vendor/assets/application/examples/svg_vectorizer.rb
atome-0.5.7.0.3 vendor/assets/application/examples/svg_vectorizer.rb
atome-0.5.7.0.2 vendor/assets/application/examples/svg_vectorizer.rb