Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialAbid Naser
2,304 PointsIn the rgb function, the value rgb( , , ) represents 100% white, while the value rgb( , , ) represents 100% black.
I entered 255,255,255 and then 000,000,000
The answer came back as incorrect?!
2 Answers
Craig Watson
27,930 PointsHi Abid,
for the rgb of white you want - (255,255,255)
for the rgb of black you want - (0,0,0)
this is because they work on a numeric scale from 1 to 255 in exact representations of the number so..
(3,45,214) NOT (003,045,214)
Hope this helps :)
Craig
Christopher Beynon
3,129 Points(255,255,255) in RGB is black, and (0,0,0) is white.