g.js — graphical objects for JavaScript

colorImagecolorImage

Create an image filled with a solid color.

g.colorImage(240, 160, 'salmon')

Parameters

  • width: The width of the resulting image.
  • height: The height of the resulting image.
  • color: The color to fill the image with.