Action
Exchange color between to LED's of the active channel. This statement will only change the memory.
Syntax
RB_SWAPCOLOR Led1 , Led2
Remarks
Led1 , Led2 |
The index of the LED of the active channel. |
This statement will swap the color info of the specified LED's.
So after the execution of the statement, LED1 becomes the color of LED2 and LED2 becomes the color of LED1.
This statement operates on the memory, it will not update the LED's.
See also
CONFIG RAINBOW , RB_ADDCOLOR, RB_ANDCOLOR, RB_ORCOLOR, RB_SUBCOLOR, RB_CLEARSTRIPE , RB_CLEARCOLORS , RB_FILL , RB_FILLCOLORS , RB_FILLSTRIPE , RB_SELECTCHANNEL, RB_SEND, RB_SETCOLOR , RB_ROTATELEFT, RB_ROTATERIGHT, RB_SHIFTLEFT, RB_SHIFTRIGHT , RB_CHANGEPIN , RB_SETTABLECOLOR , RB_GETCOLOR , RB_LOOKUPCOLOR , RB_COPY , RB_COLOR
Example