Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Functions

convertRGBtoHEX

  • convertRGBtoHEX(rgb: string): string
  • Convert RGB to HEX

    Parameters

    • rgb: string

      color in RGB format

    Returns string

    color in HEX format or empty string if color is not matching RGBA pattern

fullHEX

  • fullHEX(hex?: undefined | string): string
  • Parameters

    • Optional hex: undefined | string

      color in HEX format

    Returns string

    long HEX format or fallback to black if hex is not defined or to hex if it seems already to be in long format

getColorIndex

  • getColorIndex(color: string): number
  • Resolve color format and get it's value as natural numbers

    Parameters

    • color: string

      in unknown format

    Returns number

getHEXValue

  • getHEXValue(hex: string): number
  • Retrieve number from HEXademical color long format which could be useful for sorting

    Parameters

    • hex: string

      color in long HEX format

    Returns number

    number from 0 to 16777215

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc