Sha256: b23ba6601cbf4d505fc1172eda0b96be2761eb607cc2f7d822a64d6850c6aa5a
Contents?: true
Size: 344 Bytes
Versions: 7
Compression:
Stored size: 344 Bytes
Contents
require 'xrvg' include XRVG render = SVGRender[ :filename, "randomdash.svg" ] bezier = Bezier.raw( V2D[0.0, 1.0], V2D[1.0, 1.0], V2D[0.0, 0.0], V2D[1.0, 0.0] ) [bezier.ssort.random.splits( 30 ), (0.1..0.0).rand(30)].forzip do |drawn,width,dum,dum| render.add( drawn, Style[ :stroke, "blue", :strokewidth, width ] ) end render.end
Version data entries
7 entries across 7 versions & 1 rubygems