Ruby Sketch Instant

set width: 800, height: 600, background: 'black'

show

show

(0...800).each do |x| (0...600).each do |y| # Mandelbrot or pattern color = ((x ^ y) % 256) png[x, y] = ChunkyPNG::Color.rgb(color, color, color) end end ruby sketch

require 'ruby2d'