Table of Contents

Class PaletteGenerator

Namespace
Gamelogic.Colors
Assembly
Gamelogic.Colors.dll

A monobehaviour that can be used to configure a color palette. It has various methods, each generating a different type of palette based on the configured settings.

[Version(1, 0, 0)]
[ExecuteInEditMode]
public class PaletteGenerator : GLMonoBehaviour
Inheritance
PaletteGenerator
Inherited Members
MonoBehaviour.IsInvoking()
MonoBehaviour.StopCoroutine(Coroutine)
MonoBehaviour.StopAllCoroutines()
MonoBehaviour.runInEditMode
Component.GetComponent<T>()
Component.TryGetComponent<T>(out T)
Component.GetComponentInChildren<T>()
Component.GetComponentsInChildren<T>()
Component.GetComponentInParent<T>()
Component.GetComponents<T>()
Component.gameObject
Object.Instantiate(Object, Vector3, Quaternion, Transform)
Object.Instantiate(Object)
Object.Instantiate(Object, Transform)
Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
Object.Instantiate<T>(T, Transform)
Object.Destroy(Object)
Object.DestroyImmediate(Object)
Object.DestroyObject(Object)
Object.ToString()
Object.hideFlags
Extension Methods

Fields

algorithm
gradient
harmonyProperties
offset
palette

A palette that contains the last set of colors generated.

randomHue
randomLuminance
randomMix
randomSaturation
randomSaturationLuminance
randomWalk
shades
tints
uniform

Methods

Awake()

Regenerates the palette with the current settings.

Generate()

Generates colors with the algorithm defined by the algorithm field, and the associtated properties.

Each time this method is called, a different set of colors is created.