![]() ![]() If any of these might be fractions, use the following code instead: Make sure the A, R, G, and B values are whole numbers (rounded) so they don't contribute to other colors' values. Set pen color to ((((R) * (65536)) + ((G) * (256))) + (B)) // Be sure to use the pen color block with the color input (like the one below), or the colors will not function properly. Alpha is identified by a number 1-255, where 1 is completely transparent and 255 is opaque. The formula for ARGB is similar to that of RGB (red, green, and blue), but it has an additional value, Alpha (A) for opacity. Alternatively, it is possible to use a RGBA color as an input to the Set Pen Color to () block, as described below. Pen Transparency can be changed using the set pen (transparency v) to () block.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |