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!
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 trial
Why he is calling function for width pxify(blue($color) instead pxify (blue) ?
Why the $color variable is used as argument?
Tim Knight28,888 Points
In this example the instructor is using the red(), green(), and blue() functions to get the percentage of those colors found within the variable being passed in. He's not using it to output a color, but instead to output the width to show a visual representation of the percentage of each primary color in the variable