g.js — graphical objects for JavaScript

embossemboss

Apply an embossing filter to an image to give it a 3D shadow effect.

var i = g.import('butterfly.jpg');
g.emboss(i, 120);

Parameters

  • image: The input image.
  • amount: The amount of embossing.
  • angle: The embossing angle.