??? 06/08/10 00:40 Read: times |
#176493 - not "SPECIFIC, SPECIFIC, SPECIFIC" Responding to: ???'s previous message |
Erik... because the solution dont need to be "SPECIFIC, SPECIFIC, SPECIFIC"
I have 3 PWM outputs, each pwm is 5 depth (5 values), each one for one color R, G and B, so there is 125 avaible colors. Now I want to make a color selector variable. Each value of the variable will mean a color... combination of 0 to 4 for each RGB color. To make this, actually I'm using: COLORVAR divided by 5 Rest of division by 5 is R Quotient is divided by 5 Rest is G New quotient is B Forming the RGB from a single number COLORVAR, which is the selector Ok this works beu when R reachs value 4, the next step would be B=1 R=0, so a not smooth transition. R G B 3 0 0 4 0 0 0 1 0 < Jump from full red to weak blue. I dont want to a fade between color, I just need a better arrangement for these 125 color I already have, understand? I'm doing this because I'm a starter, I dont know other better way to do than this or a color table, this is why I'm asking for some better idea or maybe a help, or just a "search for X" Portuguese resources are very fair, and I dont know the right words to find what I need, commonly a search for the RIGHT answers gives better results. |