color

fun color(red: Float, green: Float, blue: Float, alpha: Float = 1.0f): Color

Factory methods for libGDX Color class. Allows using named parameters.

Return

a new Color instance.

Parameters

red

red color value.

green

green color value.

blue

blue color value.

alpha

color alpha value. Optional, defaults to 1f (non-transparent).