Sha256: 82def7f0f5aea7fe860ad2ebb7ecffa0c6d732cf8f57d3431b1259f12d95f140

Contents?: true

Size: 484 Bytes

Versions: 1

Compression:

Stored size: 484 Bytes

Contents

# frozen_string_literal: true

#
# based on the cairo curve_to example
# http://www.cairographics.org/samples/curve_to/
#
Shoes.app do
  x = 25.6
  y = 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

1 entries across 1 versions & 1 rubygems

Version Path
shoes-4.0.0.rc1 samples/simple_curve.rb