Skip to content

Instantly share code, notes, and snippets.

@reservationlive
Created October 9, 2009 10:10
Show Gist options
  • Save reservationlive/205902 to your computer and use it in GitHub Desktop.
Save reservationlive/205902 to your computer and use it in GitHub Desktop.
180.upto(230) do |green|
if green % 10 == 0
puts "<p style='background:#fa" + green.to_s(base=16) + "ae;'>Sexy</p>"
end
end
230.downto(180) do |red|
if red % 10 == 0
puts "<p style='background:#" + red.to_s(base=16) + "faae;'>Sexy</p>"
end
end
180.upto(230) do |blue|
if blue % 10 == 0
puts "<p style='background:#aefa" + blue.to_s(base=16) + ";'>Sexy</p>"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment