PALT


palt = "palette transparency"

 palt( color, boolean )

color a color number
boolean true or false to set transparency on or off

Example:

spr(1,10,10)  --draw red flower
palt(8,true)  --red transparent
spr(1,20,10)  --draw same flower

red flower and flower without redAs 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.

Reset Transparency
 palt()

Calling palt with empty parentheses resets all colors to default transparency, where only black (#0) is transparent.



869

9 Mar 2023

Font