Icon

Multi-Color Lerp

NPC

You must be logged in to obtain assets

Description

Extend the functionality of merge_color to allow for any number of colors to interpolate between.

Example usage:

colors[5] = c_purple;                    // value 1.0
colors[4] = c_blue;                      // value 0.8
colors[3] = c_green;                     // value 0.6
colors[2] = c_yellow;                    // value 0.4
colors[1] = c_orange;                    // value 0.2
colors[0] = c_red;                       // value 0.0

// This will give you half way between Orange and Yellow.
value = color_lerp(colors, .3);  

Check out my other marketplace listings

Stat Panel

Speech Bubble

All Listings

Thanks for viewing!

End User Licence Agreement (EULA).

Age Rating: 4+

Version

GMS1 - Version 1.0.0. Published July 29, 2014

initial commit

Loading, please wait

Package contents

Loading, please wait

What is the issue?

Loading, please wait