Sha256: bf69818d8bd34760d10da0fd00817f10d50317d7e57a8e0934b0a36f8ac8d25e
Contents?: true
Size: 361 Bytes
Versions: 9
Compression:
Stored size: 361 Bytes
Contents
# Random. # # Random numbers create the basis of this image. # Each time the program is loaded the result is different. def setup size 640, 360 stroke_weight 10 no_loop end def draw background 0 (0...width).each do |i| r = rand(255) x = rand(0 .. width) stroke(r, 100) line(i, 0, x, height) end end
Version data entries
9 entries across 9 versions & 1 rubygems