Sha256: 0f81a055891a2c48604045c638ae2dabebd2f28ff6c29d38825a5bf8958cd76d
Contents?: true
Size: 642 Bytes
Versions: 6
Compression:
Stored size: 642 Bytes
Contents
require 'purple_shoes' Shoes.app width: 300, height: 300 do background cadetblue r = rect 100, 10, 100, fill: red, strokewidth: 5, curve: 10, stroke: pink do alert 'Yay!' end o = oval 100, 110, 100, 100, fill: green, strokewidth: 10, stroke: white para 'Purple Shoes!!', left: 100, top: 70 size = COLORS.keys.size j = 0 a = animate 1, false do |i| unless j == i r.style fill: send(COLORS.keys[rand size]), stroke: send(COLORS.keys[rand size]) o.style fill: send(COLORS.keys[rand size]), stroke: send(COLORS.keys[rand size]) j = i end end button('pause'){a.pause} end
Version data entries
6 entries across 6 versions & 1 rubygems