Color variations
Moderator: Plugin Moderators
- CommanderABab
- AB
- Reactions:
- Posts: 11107
- Joined: 07 Jun 2016, 21:12
- Plugins: Showcase Store
- Version: Beta
-
Plugin Creator
Platform
Re: Color variations
Yes, you can set color with animations. Works best with a white texture.
- CommanderABab
- AB
- Reactions:
- Posts: 11107
- Joined: 07 Jun 2016, 21:12
- Plugins: Showcase Store
- Version: Beta
-
Plugin Creator
Platform
Re: Color variations
An excerpt from my crystal blue persuasion park:
Don't pay too much attention to the "handle x" number, it's what is required to center an eight-fold reduction of a 512 pixel wide texture to 64.
In the color statement:
"r" is red component, "g" is green, "b" is blue, "a" is alpha where 0 would make the animation completely transparent.
My statement would make a white texture turquoise.
#useofcolorstatement
#handleyuse
#handlexuse
Code: Select all
{
"id":"someid(changed)",
"type":"animation",
"author":"CommanderABab",
"width":2,"height":2,
"frames":[ {"bmp":"16x16blue.png","w":512,
"target w":64,"target h":32,"handle x":-1775,"handle y":128,
"offset x":0,"offset y":0,"count":1}
],
"color":{"r":30,"g":255,"b":255,"a":100}
},
In the color statement:
"r" is red component, "g" is green, "b" is blue, "a" is alpha where 0 would make the animation completely transparent.
My statement would make a white texture turquoise.
#useofcolorstatement
#handleyuse
#handlexuse