# File gtk2/sample/gtk-demo/cairo-dash.rb, line 19 def draw(cr) dashes = [ 0.20, # in 0.05, # skip 0.05, # ink 0.05, # skip ] offset = -0.2 cr.set_dash(dashes, offset) cr.move_to(0.5, 0.1) cr.line_to(0.9, 0.9) cr.rel_line_to(-0.4, 0.0) cr.curve_to(0.2, 0.9, 0.2, 0.5, 0.5, 0.5) cr.stroke end
Generated with the Darkfish Rdoc Generator 2.