Skip to content

TweenColorRotation

mrlinds edited this page Sep 29, 2018 · 5 revisions

About

Tween Color Rotation rotates the given colour through 'YIQ' colour space to retain luminosity of colours and values as they are adjusted

See page : Common Settings

Parameters

Use Material

Set the colour on a material, or instead assign to color property if available.

Material Property

name of the material property to set.

Should be the name of a Color property on a material. (usually _Color)

If using * Set Matrix * and supplied Shader, use "_MatrixYIQ" as the property name

Don't Instance Material

Script will typically create and assign a new instance of a material to tween. Select this if this is not desired behaviour. If you've set multiple 'TweenColor' components on an object, you will only want the first Component to do this instancing.

Force Set Material

Script typically sets color on 'renderer.sharedMaterial' Select this if you want to force the script to set referenced 'material' instead This is especially used if setting some things up by script

Colour Space

YIQ Colour Space will affect Hue Saturation and Value.

Saturation only is a cheaper operation if you only want that.

YUV BlendExperiment uses YUV space, Wikipedia Link

HSV Values

Values with hue rotation (0-360 degrees) Saturation 0-1 and Value 0-1.

Saturation and Value do work outside the 0-1 range.

Set Matrix

Send the materix to the shader to do the rotation there. Usefull if wanting to apply to the colours on a texture.

Lindsay Jorgensen lindsay (at) radialgames (dot) com or twitter @mrlinds

Clone this wiki locally