Is is possible to make a switch using color variables? It's telling me case expressions must be constant, so I tried making my colors final and it gave me the same error: "case expressions must be constant expressions". And making them static gives me another error: "Cannot make a static reference to a non-static method color(int, int int) from the type PApplet".
I know I can use a series of if, else if statements. I just figured I wanted to try something different.
I know I can use a series of if, else if statements. I just figured I wanted to try something different.
1