Options
All
  • Public
  • Public/Protected
  • All
Menu

Module color

The color module contains classes for color, the most common is Color, which represents ARGB color.

see

Color

Index

Classes

Interfaces

Functions

Functions

toColorInt

  • toColorInt(number: number): number
  • Convert a number to a color integer. The actual implementation is to convert the number that larger than int32 max to a negative number. For example, 0xFFFFFFFF will be converted to -1.

    Parameters

    • number: number

      integer

    Returns number

    color integer