Sha256: d5a34d526c430ca19d42185facce4fb94042948e0731c6cd333b9b1664847096
Contents?: true
Size: 351 Bytes
Versions: 3
Compression:
Stored size: 351 Bytes
Contents
require 'xrvg' render = SVGRender[ :filename, "palette_circle.svg", :background, "white" ] palette = Palette[ :colorlist, [ Color.black, 0.0, Color.blue, 1.0 ] ] [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
3 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
xrvg-0.0.1 | ./examples/palette_circle.rb |
xrvg-0.0.2 | examples/palette_circle.rb |
xrvg-0.0.1 | ./examples/sample.rb |