Skip to content

Instantly share code, notes, and snippets.

Avatar

Przemyslaw::Kowalczyk szeryf

View GitHub Profile
View line_girl.rb
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
View travolta-dos2.rb
W = 490
H = 475
def setup
srand 333
frame_rate 10
end
def draw
if frame_count == 1
@szeryf
szeryf / waterfall1.rb
Created Oct 8, 2017
Waterfall One, the source of
View waterfall1.rb
# 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
View forest.rb
# 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