Skip to content

Instantly share code, notes, and snippets.

@monkstone
Last active August 29, 2015 14:05
Show Gist options
  • Save monkstone/695b1aedd959cfdc9cb7 to your computer and use it in GitHub Desktop.
Save monkstone/695b1aedd959cfdc9cb7 to your computer and use it in GitHub Desktop.
Modified grey circles to run without install
# grey circles : borrowed from https://github.com/quil/quil
require_relative "../lib/ribiprocessing"
class GreyCircles < Ribiprocessing::SimpleApp
def setup
size(600, 800)
frame_rate(2)
background(200)
end
def draw
stroke_setup
diameter = rand(100)
ellipse(rand(width), rand(height), diameter, diameter)
end
def stroke_setup
[:stroke, :stroke_weight, :fill].each do |method|
send(method, rand(255))
end
end
end
GreyCircles.new title: "Oh so many circles"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment