[ 16, 60 ]
6.0
137 138 139 140
# File 'lib/rofltim.rb', line 137 def color x, y sin = Math.sin(x / PERIOD + y / (PERIOD * 0.5)) PALETTE[(0.256 * sin + 0.256).round] end
134 135 136
# File 'lib/rofltim.rb', line 134 def pixel x, y, char = " " Pixel.new char, 0, color(x, y) end