if (do_name() != 'Home') : ?>
include("util/comment.php"); ?>
photobot.Layer.desaturate()
endif ?>Syntax
canvas.layers[i].desaturate()
Description
Desaturates layer i, making it grayscale. Instantly removes all color information from the layer, while maintaing its alpha channel.
Example
photobot = ximport("photobot") canvas = photobot.canvas(100,100) canvas.layer("robot.jpg") canvas.layers[1].desaturate()