g.js — graphical objects for JavaScript

grayColorgrayColor

Create a gray color.

g.grayColor(0.48, 1.0);
  • gray: The gray value of the color (between 0.0-1.0).
  • alpha: The alpha transparency of the color (between 0.0-1.0, optional).