Global Color Transform

Designed a really awesome, amazing, complicated contraption? Show it off here!

Global Color Transform

Postby Runouw » Sun May 17, 2015 5:39 am

I've decided to reveal an unfinished trigger function because it's going to be useful to many people.

This isn't an official feature in the game yet because it's a non-essential function. The flashplayer games are meant to load quickly and post-effects like rain, snow, and global color transforms were deemed "too laggy" of a feature to put in the core story levels. Also, programming the menus for it in the level designer is very taxing on time when development needs to be spent on more important things.

Anyway, for those of you who like code editing, here is the Set Post Filter function.
Code: Select all
llitem:6;322;1451;64;64;0;1;setpostfilter,100/100/100/100/0/0/0/0/0/0/-100/0

This example uses a saturation = -100, which turns the whole level monochrome.

The order of the color modifiers are the following (all require a "/" to separate them):
  • redMultiplier
  • greenMultiplier
  • blueMultiplier
  • alphaMultiplier
  • redOffset
  • greenOffset
  • blueOffset
  • alphaOffset
  • brightness
  • contrast
  • saturation
  • hue
For reference, the values do the same exact thing as if you applied a color transform an item, but instead, it applies it to the whole screen.
User avatar
Runouw
Site Admin
 
Posts: 72
Joined: Fri Jul 18, 2014 6:35 pm

Re: Global Color Transform

Postby ColdWater » Sun May 17, 2015 7:26 am

Finally ,I can make a good retro level.
Thanks Runouw
( ͡° ͜ʖ ͡°) is love ,( ͡° ͜ʖ ͡°) is life.
Salut la France ( ͡° ͜ʖ ͡°)
Dont be crazy if I abuse lennies ,please ,seriously I love those , same thing if I talk everyday on shadows effect in the LD ,but I like making 160 objects in one single 17x22 screen.
waaaaa
User avatar
ColdWater
 
Posts: 128
Joined: Fri Feb 20, 2015 11:45 am

Re: Global Color Transform

Postby Dtroid » Sun May 17, 2015 11:14 am

Thank you Runouw!
signature
User avatar
Dtroid
 
Posts: 20
Joined: Tue Oct 14, 2014 1:52 pm

Re: Global Color Transform

Postby Niicola » Sun May 17, 2015 12:39 pm

Runouw wrote:Anyway, for those of you who like code editing [...]

Perfect 8-)
"There is no good or evil, only Akuma."
~ Akuma the raging Demon


Follow me in The Topic of "Coming Soon" Levels/Projects.
First page have been updated to make it look more professional, check it out!
Last update 02/07/16
User avatar
Niicola
 
Posts: 179
Joined: Sun Sep 07, 2014 3:26 pm
Location: /Not Found/

Re: Global Color Transform

Postby -BY » Wed May 20, 2015 7:14 am

Sepia for those in need.
Code: Select all
llitem:6;91;1416;64;64;0;1;setpostfilter,100/100/100/100/42/22/10/0/0/0/-100


It's like awesome to work with this.
User avatar
-BY
 
Posts: 71
Joined: Sat Aug 02, 2014 12:06 am
Location: Behind the scenes


Return to Trigger creations

Who is online

Users browsing this forum: No registered users and 12 guests

cron