Skip to content

Instantly share code, notes, and snippets.

View szeryf's full-sized avatar

Przemyslaw Kowalczyk szeryf

View GitHub Profile
W = 500
H = 585
W1 = W - 1
H1 = H - 1
def setup
@img = load_image '../scratch/girl.png'
@img.filter BLUR, 3
@img.load_pixels
end
W = 490
H = 475
def setup
srand 333
frame_rate 10
end
def draw
if frame_count == 1
@szeryf
szeryf / waterfall1.rb
Created October 8, 2017 18:14
Waterfall One, the source of
# Waterfall One
# http://low-sugar-eye-candy.tumblr.com/post/164374908068/waterfall-one
#
# requires jruby_art gem and Processing3 to run
# run with: k9 run --nojruby forest.rb
W = 500
H = 801
def setup
# requires jruby_art gem and Processing3 to run
# run with: k9 run --nojruby forest.rb
def setup
@images = Dir.glob("resized-*.jpg").map { |file| load_image(file) }
@pixels = @images.map { |i| i.load_pixels; i.pixels }
noise_seed 130
end
def draw