Try changing the color of a sprite in CodeHS using different RGB color codes.
In the "Exploring RGB Color Codes" lesson (often found in Web Design or JavaScript/Graphics units), CodeHS asks students to manipulate the setRGB or fill functions to create specific colors. The goal is to stop memorizing hex codes (#FF0000) and instead understand how changing numerical values changes the output. exploring rgb color codes codehs answers best
Without looking up the hex code, how do you make Yellow using RGB? Best Answer: Yellow is made by combining Red and Green. Therefore, the code is rgb(255, 255, 0) . Try changing the color of a sprite in
: Each strip must display a slightly different shade, often achieved by incrementally changing one or more of the RGB values in a loop. Without looking up the hex code, how do
canvas = Canvas(400, 400)
the numbers, treating the three values like ingredients in a recipe. He added a dash of green to mellow the heat and a pinch of blue to deepen the shadows. He found the "best" answers weren't in a cheat sheet, but in the tiny increments. 255, 153, 51 – A bright, toasted apricot. 102, 51, 153 – A deep, "Rebecca Purple" for the rising night.