[EFFECT] Color Replace

This forum is currently in read-only mode.
  • What it does:

    Replaces one color with another.

    How to use it:

    The "old" parameters define the color to be replaced, and the "new" parameters define the new color. Values are in the range from 0 to 255.

    Installation:

    Download "Color Replace.fx" and place it inside the effects folder.

    Download:

    Color Replace.fx

    old:http://dl.dropbox.com/u/5426011/Color%20Replace.fx

    EDIT:

    New version that works with transparency, thanks to tulamide

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Awesome. Say, would it be possible to have it float4_int instead of 1?

    Like

    Original Color | R,G,B

    Replacement Color | R,G,B

    In the event editor, you would have

    Set Original Color

    Set Replacement Color

  • I only found this effect now and wanted to thank R0J0hound for it. I really needed a way to replace specific colors of sprites for my project instead of having multiple clones with different colors.

    This will come in very handy.

  • It is just great, but I need to know how can I access the actual source color of a sprite to interpolate it between the source and the target, something like:

    set effect parameter(0) to lerp(self.effect(ReplaceColor).RSource, self.effect(ReplaceColor).RTarget, time)

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)