Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TinyColor

Hierarchy

  • TinyColor

Index

Constructors

constructor

Properties

a

a: number

alpha

b

b: number

blue

format

format: ColorFormats

the format used to create the tinycolor instance

g

g: number

green

Optional gradientType

gradientType: string

isValid

isValid: boolean

the color was successfully parsed

originalInput

originalInput: ColorInput

input passed into the constructer used to create the tinycolor instance

r

r: number

red

roundA

roundA: number

rounded alpha

Methods

toHex

  • toHex(allow3Char?: boolean): string

toHsl

  • toHsl(): { a: number; h: number; l: number; s: number }

toHsv

  • toHsv(): { a: number; h: number; s: number; v: number }

toRgb

  • toRgb(): { a: number; b: number; g: number; r: number }

toRgbString

  • toRgbString(): string

Generated using TypeDoc