Tile - YColor - Lerp – Ylands

From Bohemia Interactive Community
Revision as of 03:01, 21 November 2020 by Ocnog (talk | contribs) (Added explanation and examples)
Jump to navigation Jump to search

Color lerp.png

  • Interpolates between two colors A and B by the interpolant T.
  • The interpolant is clamped to the range 0, 1.

This tile returns a single Color that is between Color A and Color B. The interpolant T will determine how similar it is to each color. For example, if it is 0.7, it will be 70% of Color B and 30% of Color A. It can be used to make a gradient between the two colors.

Examples:

Simple option:
Ylands Tile - Color Lerp Simple Example.png
Advanced option:
Ylands Tile - Color Lerp Advanced Example.png
Before:
Ylands Tile - Color Lerp Advanced Example Setup.png
After:
Ylands Tile - Color Lerp Simple Example Output.png

Template:Ylands scripting navbox