palt = "palette transparency"
palt( color, boolean )
|color||a color number|
|boolean||true or false to set transparency on or off|
spr(1,10,10) --draw red flower palt(8,true) --red transparent spr(1,20,10) --draw same flower
As you can see, this code first drew a red flower, but before it drew the second flower, the color red was set to be transparent so the red petals don't appear on the second flower after the call to
palt with empty parentheses resets all colors to default transparency, where only black (#0) is transparent.
9 Mar 2023