Companion

object Companion

Properties

Link copied to clipboard
Link copied to clipboard

Transparent color. This should be used for checking in draw calls to prevent drawing of empty objects, e.g.

Link copied to clipboard

Functions

Link copied to clipboard

Turn the given hex string into a color.

fun from(hex: String, alpha: Float = 1.0f): PolyColor
fun from(hex: String, alpha: Int = 255): PolyColor
Link copied to clipboard
fun hexOf(color: Color, alpha: Boolean = true, hash: Boolean = true): String