g.js — graphical objects for JavaScript

rgbColorrgbColor

Create a RGB color.

g.rgbColor(0.48, 1.0, 1.0, 1.0);

Parameters

  • red: The red component of the color (between 0.0-1.0).
  • green: The green component of the color (between 0.0-1.0).
  • blue: The blue component of the color (between 0.0-1.0).
  • alpha: The alpha transparency of the color (between 0.0-1.0, optional).