Sha256: e7438a7eaaa826979ddf360419652d23b41eaac5e55695365f020996a9e2d233
Contents?: true
Size: 368 Bytes
Versions: 4
Compression:
Stored size: 368 Bytes
Contents
require 'xrvg' include XRVG render = SVGRender[ :filename, "palette_circle.svg", :background, "white" ] palette = Palette[ :colorlist, [ 0.0, Color.black, 1.0 , Color.blue] ] [Circle[], palette, (0.1..0.02).random()].samples(25) do |point, color, radius| render.add( Circle[ :center, point, :radius, radius ], Style[ :fill, color ]) end render.end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
xrvg-0.0.4 | examples/palette_circle.rb |
xrvg-0.0.5 | examples/palette_circle.rb |
xrvg-0.0.6 | examples/palette_circle.rb |
xrvg-0.0.7 | examples/palette_circle.rb |