# File lib/captcha.rb, line 165 def populate_with_noise color = colorResolve( 0, 0, 0 ) ( width * height / 4 ).times do x, y = rand( width ), rand( height ) setPixel( x, y, color ) end inc = height/10 ( height / inc ).times do |i| line( 0, inc*i + rand(20) - 10, width, inc*i + rand(20) - 10, color ) end end