Sha256: 23f16cbdbe57910e9133e1407eef7832ef4790e875392f9cec9499b0cdd1eeb2
Contents?: true
Size: 388 Bytes
Versions: 2
Compression:
Stored size: 388 Bytes
Contents
require 'xrvg' render = SVGRender[ :filename, "uplets.svg", :background, "white" ] Circle[].samples(10).uplets do |p1,p2| render.add( Line[ :points, [p1,p2]], Style[ :stroke, "black", :strokewidth, 0.1 ] ) render.add( Circle[:center, p1, :radius, 0.1], Style[ :fill, Color.red ] ) render.add( Circle[:center, p2, :radius, 0.2], Style[ :fill, Color.blue ] ) end render.end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
xrvg-0.0.3 | examples/uplets.rb |
xrvg-0.0.2 | examples/uplets.rb |