Gamalto

Fork me on GitHub

Object Color Overview

Gamalto. Color

new Gamalto.Color(ropt, gopt, bopt, aopt)

Creates a RGBA color object.

Parameters
Name Type Attributes Description
r number <optional>

Red component of the color.

g number <optional>

Green component of the color.

b number <optional>

Blue component of the color.

a number <optional>

Alpha component of the color.

Extends

Members

a :number

Gets or sets the alpha component of the color.

b :number

Gets or sets the blue component of the color.

g :number

Gets or sets the green component of the color.

r :number

Gets or sets the red component of the color.

tag :object

inherited

Utility property to exchange data between objects.

Inherited From

Methods

blend(c1, c2, factor) Gamalto.Color

static

Alpha-blends two colors.

Parameters
Name Type Description
c1 Gamalto.Color

Source color.

c2 Gamalto.Color

Destination color.

factor number

Blending factor. A value of 1 means 100% of the destination color.

Returns
  • Resulting color.

clone() Gamalto.Color

override

Creates a clone of the current object.

Overrides
Returns
  • Copy of the object.

toString() string

inherited abstract

Converts the object into a string.

Inherited From
Returns
  • string

Documentation generated by JSDoc 3.3.2 on Sun Sep 13 2015 20:13:31 GMT+0200 (CEST)