=begin
Shoe-ists:

I found no samples for shape{ line_to }, or gradient, so
I ... cobbled one together. Enjoy!  --Phlip
=end

s =
[[30, 64], [50, 51], [69, 35], [79, 26], [88, 16], [92, 4],
 [91, 0], [81, 0], [90, -2], [82, 5], [75, 16], [79, 27],
 [84, 36], [93, 46], [87, 57], [83, 67], [70, 75], [59, 72],
 [54, 67], [43, 53], [56, 49], [61, 56], [62, 69], [74, 67],
 [80, 65], [65, 74], [73, 69], [82, 64], [83, 50], [77, 42],
 [69, 33], [67, 19], [75, 9], [80, 1], [88, -6], [97, -5],
 [106, 7], [90, 17], [84, 25], [65, 44], [42, 58], [21, 74],
 [17, 76], [14, 77], [10, 78]]

hoes =
[[95, 58], [117, 49], [129, 30], [135, 24], [144, 8], [131, 6],
 [138, 3], [127, 16], [127, 21], [123, 34], [120, 48], [113, 60],
 [115, 68], [97, 74], [105, 63], [113, 53], [115, 37], [128, 32],
 [141, 31], [139, 48], [138, 56], [134, 63], [135, 75], [145, 67],
 [141, 69], [150, 58], [151, 55], [156, 49], [167, 41], [174, 45],
 [172, 52], [152, 51], [165, 47], [157, 51], [148, 71], [163, 70],
 [162, 70], [154, 75], [161, 70], [173, 63], [159, 38], [175, 39],
 [183, 45], [192, 54], [204, 50], [211, 47], [206, 51], [203, 51],
 [208, 47], [212, 32], [201, 34], [209, 30], [195, 42], [194, 45],
 [185, 53], [189, 71], [203, 66], [212, 63], [205, 68], [205, 67],
 [219, 56], [233, 45], [245, 33], [252, 27], [258, 19], [267, 17],
 [262, 26], [251, 32], [246, 41], [246, 51], [273, 51], [264, 63],
 [254, 70], [241, 68], [229, 67], [220, 65], [224, 56], [233, 57],
 [245, 56], [257, 60], [270, 56], [275, 56], [291, 50], [279, 57],
 [272, 62], [263, 62], [255, 63], [245, 64], [234, 62], [224, 62],
 [232, 55], [242, 66], [252, 62], [257, 63], [268, 59], [259, 64],
 [258, 57], [241, 56], [238, 46], [242, 37], [252, 27], [262, 20],
 [271, 15], [252, 29], [250, 32], [237, 45], [222, 56], [208, 67],
 [199, 75], [178, 74], [180, 59], [183, 50], [190, 43], [196, 37],
 [201, 32], [212, 23], [216, 33], [218, 48], [203, 57], [191, 56],
 [182, 56], [163, 48], [171, 38], [180, 38], [174, 54], [173, 60],
 [169, 69], [155, 81], [147, 71], [144, 59], [158, 47], [170, 45],
 [180, 45], [163, 50], [159, 50], [155, 51], [149, 56], [156, 51],
 [160, 48], [165, 47], [159, 52], [155, 63], [146, 70], [135, 74],
 [120, 78], [130, 61], [130, 53], [132, 47], [127, 39], [125, 36],
 [132, 31], [121, 43], [121, 47], [116, 54], [111, 71], [102, 69],
 [112, 51], [117, 30], [124, 11], [128, -2], [153, -3], [145, 15],
 [140, 24], [133, 33], [125, 41], [112, 51], [97, 60], [83, 67],
 [81, 68], [79, 69], [77, 69]]

hoes = hoes.map{|x,y| [x-25,y]}  # is this a missing translate{} directive?

Shoes.app :height => 200, :width => 400 do
  background gradient(rgb(55, 77, 55), black)
  stroke gradient(orange, blue)
  fill gradient(blue, '880000') # BTW 0x88000 might ought to work

  shape *s[-1] do
    s.each{|xy| line_to *xy }
  end

  shape *hoes[-1] do
    hoes.each{|xy| line_to *xy } # TODO (except me!) curve_to!
  end
end

Reply via email to