This file contains 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
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 |
This file contains 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
W = 490 | |
H = 475 | |
def setup | |
srand 333 | |
frame_rate 10 | |
end | |
def draw | |
if frame_count == 1 |
This file contains 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
# 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 |
This file contains 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
# 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 |