[EFFECT] Gradients

This forum is currently in read-only mode.
  • This effect draws color gradients over objects, using the object's alpha as a mask. It handles semi-transparencies and can be mixed with the original colors of the object. It is very useful in combination with (but not limited to) the text object, as you can see here:

    How to use it:

    Gradient type (float)

      radial = 1 linear = any other number

    Direction (float)

      if type is radial:
        inside to outside = 1 outside to inside = any other number
      if type is linear:
        top to bottom = 1 left to right = any other number

    Color 1 Red, Green, Blue and Opacity (percent)

      the values in percent that define the first color note: values outside [0, 100] can be used (e.g. to fine-tune the softness/hardness of the gradient

    Color 2 Red, Green, Blue and Opacity (percent)

      the values in percent that define the second color note: values outside [0, 100] can be used (e.g. to fine-tune the softness/hardness of the gradient

    If the opacity is set to a value lower than 100%, the gradient is mixed with the underlying object's colors. Furthermore, the opacity of the gradient is relative to the object's opacity:

    A 100% gradient from full red to full blue assigned to a full green object whose opacity is set to 50% will result in an 50% transparent gradient from full red to full blue.

    A 50% gradient from full red to full blue assigned to a full green object whose opacity is set to 50% will result in an 50% transparent gradient from yellow-ish to cyan-ish.

    How to install:

    Download "Gradients.fx" and place it inside the effects folder.

    Download:

    Gradients.fx

  • Thank you very much.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • This is very nice!

    Thank you.

    Krush.

  • Hi,

    is there an xml file for this effect?

  • ripso

    This is for Construct Classic.

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