Color variations

Plug-in related stuff can be discussed here.

Moderator: Plugin Moderators

User avatar
CommanderABab
AB
Reactions:
Posts: 11102
Joined: 07 Jun 2016, 21:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Color variations

#1

Post by CommanderABab »

Yes, you can set color with animations. Works best with a white texture.

User avatar
CommanderABab
AB
Reactions:
Posts: 11102
Joined: 07 Jun 2016, 21:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Color variations

#2

Post by CommanderABab »

An excerpt from my crystal blue persuasion park:

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}
  },
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

User avatar
Kulche
Pluche
Reactions:
Posts: 1146
Joined: 07 Jun 2017, 20:28
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Color variations

#3

Post by Kulche »

Seems legit

Post Reply Previous topicNext topic

Return to “Plug-In Discussion”