|
Post by kennn on Dec 27, 2019 6:43:38 GMT -6
Example, this code doesn't draw the rectange,
SetColor(HexVal("FFC8FF")) RectFill(0,0,96,54) Update
However, this code can draw text,
SetColor(HexVal("FFC8FF")) DrawText("ABCDE", 390, 35) Update
Thank you!!!!!
|
|
|
Post by n00b on Dec 27, 2019 9:00:49 GMT -6
Hey kennn. The problem you are having is that you are not passing the alpha value. In RCBasic, color values are organized like this: Alpha, Red, Green, Blue The RGB function will automatically return the max alpha value of 255 and the RGBA function will return the numerical organization above by default. So here is the 3 different ways you could set the color with the above color you are trying to use: This is the method you were using but adding the alpha value of 255 or "FF". It has to be in this order A R G B: SetColor( HexVal("FFFFC8FF") ) This uses RGB: SetColor( RGB(HexVal("FF"), HexVal("C8"), HexVal("FF")) ) This uses RGBA and Sets the Alpha Value (the 4th parameter) to 255 or "FF": SetColor( RGBA(HexVal("FF"), HexVal("C8"), HexVal("FF"), HexVal("FF")) ) I hope that was easy to understand. I will try to make this clearer in the manual.
|
|
|
Post by kennn on Dec 27, 2019 10:18:58 GMT -6
Thank you very much!
|
|