sparkle-engine

颜色

Implements

Constructors

  • Parameters

    • r: number = 0
    • g: number = 0
    • b: number = 0
    • alpha: number = 1

    Returns Color

Properties

alpha: number = 0
b: number = 0
g: number = 0
r: number = 0

Methods

  • 判断是否相等

    Parameters

    Returns boolean

  • 直接设置颜色

    Parameters

    • r: number
    • g: number
    • b: number
    • alpha: number = 1

    Returns void