color

fun Skin.color(name: String, red: Float, green: Float, blue: Float, alpha: Float = 1.0f): Color

Adds a new Color instance to the skin.

Return

a new instance of Color.

Parameters

name

name of the color.

red

red color component in range of 0, 1.

green

green color component in range of 0, 1.

blue

blue color component in range of 0, 1.

alpha

alpha (transparency) color component in range of 0, 1. Defaults to 1f.