Getting the color of a pixel

.each_line do |line|