g.js — graphical objects for JavaScript

brightenbrighten

Brighten an image.

var i = g.import('butterfly.jpg');
g.brighten(i, 80, 0);

Parameters

  • image: The input image.
  • brightness: The amount of brightness.
  • contrast: The amount of contrast.