Sha256: 333ec9394c548d1d07daf7e44306a8c30d23cef4fa2588c14af722426ab77a28

Contents?: true

Size: 473 Bytes

Versions: 6

Compression:

Stored size: 473 Bytes

Contents

#
# based on the cairo curve_to example
# http://www.cairographics.org/samples/curve_to/
#
Shoes.app do  
  x, y = 25.6, 128.0
  x1 = 102.4; y1 = 230.4
  x2 = 153.6; y2 = 25.6
  x3 = 230.4; y3 = 128.0

  nofill
  strokewidth 10.0
  shape do
    move_to x, y
    curve_to x1, y1, x2, y2, x3, y3
  end

  strokewidth 6.0
  stroke rgb(1.0, 0.2, 0.2, 0.6)
  shape do
    move_to x, y
    line_to x1, y1
    move_to x2, y2
    line_to x3, y3
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
shoesgem-0.1480.0 shoes/samples/simple-curve.rb
shoesgem-0.1469.0 shoes/samples/simple-curve.rb
shoesgem-0.1430.0 shoes/samples/simple-curve.rb
shoesgem-0.1429.0 shoes/samples/simple-curve.rb
shoesgem-0.1428.0 shoes/samples/simple-curve.rb
shoesgem-0.1426.0 shoes/samples/simple-curve.rb