Sha256: ad00c97f3ec6f66fee5fbfd688c5e264b7f09c5f9a45036e86868cd798c32894
Contents?: true
Size: 1.06 KB
Versions: 1
Compression:
Stored size: 1.06 KB
Contents
require 'squib' Squib::Deck.new do background color: :white rect x: 300, y: 300, width: 400, height: 400, fill_color: :blue, stroke_color: :red, stroke_width: 50.0 circle x: 600, y: 600, radius: 75, fill_color: :gray, stroke_color: :green, stroke_width: 8.0 triangle x1: 50, y1: 50, x2: 150, y2: 150, x3: 75, y3: 250 line x1: 50, y1: 550, x2: 150, y2: 650, stroke_width: 25.0 curve x1: 50, y1: 850, cx1: 150, cy1: 700, x2: 625, y2: 900, cx2: 150, cy2: 700, stroke_width: 12.0, stroke_color: :cyan, fill_color: :burgundy ellipse x: 50, y: 925, width: 200, height: 100, stroke_width: 5.0, stroke_color: :cyan, fill_color: :burgundy star x: 300, y: 1000, n: 5, inner_radius: 10, outer_radius: 25, fill_color: :burgundy, stroke_color: :cyan, stroke_width: 3 polygon x: 500, y: 1000, n: 5, radius: 25, angle: Math::PI / 2, fill_color: :burgundy, stroke_color: :cyan, stroke_width: 2 save_png prefix: 'shape_' end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
squib-0.6.0 | samples/draw_shapes.rb |