g.js — graphical objects for JavaScript

hexColorhexColor

Create a color using a hexadecimal value.

g.hexColor('#FF0000');

The initial “#” is optional:

g.hexColor('00ff00');

Parameters

  • s: The hexadecimal color value, as a string.