Pixastic Docs

JavaScript Image Processing Library

Documentation: Sepia

Description

This acts like the desaturation action, but instead of a regular grayscale it adds a tinting to create an effect similar to sepia toning. An alternative mode is available which is a bit faster but arguably doesn’t produce as good a result as the default mode.

Demo

Alternative mode:

Example usage

var img = new Image();
img.onload = function() {
	Pixastic.process(img, "sepia");
}
document.body.appendChild(img);
img.src = "myimage.jpg";

Parameters

This action has no parameters.

View source: sepia.js

Browser support