Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
monkstone authored Aug 7, 2016
1 parent e535406 commit 0957f01
Showing 1 changed file with 2 additions and 19 deletions.
21 changes: 2 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,34 +29,17 @@ require 'propane'

class FlashingLightsSketch < Propane::App

attr_reader :random_background

def initialize opts={}
@random_background = opts.fetch :random_background, RandomBackground.new(self)
super
end

def settinngs
def settings
size(800, 600)
end

def setup
sketch_title 'Flashing Light Sketch'
end

def draw
random_background.generate
end

end

class RandomBackground
include Propane::Proxy

def generate
background(rand(255), rand(255), rand(255))
end

end

FlashingLightsSketch.new
Expand Down

0 comments on commit 0957f01

Please sign in to comment.