Description

Each color instance contains Red, Green, Blue, and Alpha (RGBA) components. Each component can take values from 0 through 255 as color code.

Syntax

new flwebgl.geom.Color(r, g, b, a)

Parameters

Name Type Description
r number The Red value (0 - 255)
g number The Green value (0 - 255)
b number The Blue value (0 - 255)
a number (optional) The default value is 255.

Properties

Name Type Description
red number The Red Value (0 - 255)
green number The Green Value (0 - 255)
blue number The Blue Value (0 - 255)
alpha number The Alpha Value (0 - 255)

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License  Twitter™ and Facebook posts are not covered under the terms of Creative Commons.

Legal Notices   |   Online Privacy Policy