getColor

abstract fun getColor(key: String, target: VariableTarget?): Color

Get a color variable. Experimental: this API may change in a minor release.

Return

the color value of the variable.

Parameters

key

the variable's key.

target

the layer to read. null returns the value that the scene shows: the value of the active value set, else the default value.


open fun getColor(key: String): Color

Get the shown value of a color variable. Same as getColor with no target.