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.runInEditMode
Component.GetComponent<T>()
Component.GetComponentInChildren<T>()
Component.GetComponentsInChildren<T>()
Component.GetComponentsInParent<T>()
Component.transform
Component.gameObject
Component.tag
Object.Instantiate(Object, Vector3, Quaternion, Transform)
Object.Instantiate(Object)
Object.Instantiate(Object, Transform)
Object.Instantiate<T>(T)
Object.Instantiate<T>(T, Vector3, Quaternion)
Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
Object.Instantiate<T>(T, Transform)
Object.Destroy(Object)
Object.DestroyImmediate(Object)
Object.DestroyObject(Object)
Object.FindObjectsOfType<T>()
Object.ToString()
Object.hideFlags

Fields

affineCircle
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 associated properties.

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