Gjsify LogoGjsify Logo

Describes a color, such as used in the Google Calendar interface to differentiate calendars.

record

Hierarchy

  • Color

Index

Constructors

Properties

blue: number

blue color intensity, from 0–255

field
green: number

green color intensity, from 0–255

field
red: number

red color intensity, from 0–255

field
name: string

Methods

  • toHexadecimal(): string
  • Returns a string describing color in hexadecimal form; in the form #rrgg bb, where rr is a two-digit hexadecimal red intensity value, gg is green and bb is blue. The hash is always present.

    Returns string

  • fromHexadecimal(hexadecimal: string): [boolean, GData.Color]
  • Parses hexadecimal and returns a #GDataColor describing it in color.

    hexadecimal should be in the form #rrggbb, where rr is a two-digit hexadecimal red intensity value, gg is green and bb is blue. The hash is optional.

    Parameters

    • hexadecimal: string

      a hexadecimal color string

    Returns [boolean, GData.Color]

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