lib/nodes/color-image.js
function ColorImage(color) {
  this.color = color;
  this.canvas = new Canvas(1, 1);
  this.ctx = this.canvas.getContext('2d');
  this.ctx.fillStyle = color.toString();
  this.ctx.fillRect(0, 0, 1, 1);
}
function ColorImage(color) {
  this.color = color;
  this.canvas = new Canvas(1, 1);
  this.ctx = this.canvas.getContext('2d');
  this.ctx.fillStyle = color.toString();
  this.ctx.fillRect(0, 0, 1, 1);
}
function ColorImage ( color ) { this . color = color ; this . canvas = new Canvas ( 1 , 1 ) ; this . ctx = this . canvas . getContext ( '2d' ) ; this . ctx . fillStyle = color . toString ( ) ; this . ctx . fillRect ( 0 , 0 , 1 , 1 ) ; }
Initialize a new `ColorImage` node with the given arguments.

@param {Color} color node
@api private
Initialize a new ColorImage node with the given arguments .