Last active
August 29, 2015 14:05
-
-
Save monkstone/695b1aedd959cfdc9cb7 to your computer and use it in GitHub Desktop.
Modified grey circles to run without install
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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