photobot.Layer.flip()

Syntax

canvas.layers[i].flip(axis=HORIZONTAL)

Description

Flips layer i, either HORIZONTAL or VERTICAL.

Example

photobot = ximport("photobot")
canvas = photobot.canvas(100,100)
canvas.layer("robot.jpg")
canvas.layers[1].flip(photobot.VERTICAL)