The function sets the specified effect on its sprite to the specified amount. There are seven different effects to choose from: color, fisheye, whirl, pixelate, mosaic, brightness, and ghost.
The example demonstrates how to make the sprite track and stamp its image on the mouse when the space key is pressed in Python.
Code
sprite = Sprite('Tobi')
pen = Pen()
pen.clear()
while True:
if (sprite.iskeypressed("space")):
sprite.setx(sprite.mousex())
sprite.sety(sprite.mousey())
pen.stamp()