Code checking before programming

Love the suggestions, and I will most certainly look into addressable LEDs for future projects. But to steer back to what the point was...

Is this a viable base code for using three encoders to control a common cathode RGB LED?

Again, Im trying to do the good father thing and teach her how colors mix. I certainly do appreciate the education I can receive, but this is just a simple toy for a four year old her dad built.

Leonardo board, three cts encoders, 1 common cathode RGB led, that's it.

I'm a beginner, i'm a network security expert, not a programmer. I'm learning....