hw5c2 - if ch == "D": r = r/2 g =...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
r = int(raw_input("Enter red component: ")) g = int(raw_input("Enter green component: ")) b = int(raw_input("Enter blue component: ")) ch = raw_input("Darken or lighten color (D/L)? ")
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: if ch == "D": r = r/2 g = g/2 b = b/2 elif ch == "L": r = r + (255-r)/2 g = g + (255-g)/2 b = b + (255-b)/2 print " red:", r, " green:", g, " blue:", b...
View Full Document

Ask a homework question - tutors are online