Skip to content

Instantly share code, notes, and snippets.

@peterhellberg
Created March 19, 2013 16:05
Show Gist options
  • Select an option

  • Save peterhellberg/5197395 to your computer and use it in GitHub Desktop.

Select an option

Save peterhellberg/5197395 to your computer and use it in GitHub Desktop.
Playing around with Shoes
Shoes.app do
border "#FF6600", strokewidth: 6
background "#FF6600".."#CC0000"
fill rgb(255,102,0, 0.5)
stroke rgb(255,102,0, 0.9)
strokewidth 0.25
ovals = 40.times.map do
oval(
left: (-5..self.width).rand,
top: (-5..self.height).rand,
radius: (25..50).rand
)
end
animate do |i|
ovals.sample.left = (-5..self.width).rand
ovals.sample.top = (-5..self.height).rand
end
end
@peterhellberg
Copy link
Author

Orange Shoes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment