What do the numbers in the color variables mean?


#1

// Color variables:
red = [100, 100, 63];
orange = [40, 100, 60];
green = [75, 20, 40];
blue = [196, 77, 55];
purple = [280, 50, 60];

What do the numbers mean? Also, if I change the numbers, the output is still the same. Please help :frowning:


#2

Without context we cannot explain everything about the code, but can say that the three values correspond with the RGB color palette. How those arrays are implemented is unknown. Do you have more code that we can look at?

280 is outside of the range of an 8-bit palette value. It should be in the range, 0…255