.tap

This is a special variable you can define yourself for any stamp, text object, or circle. When you tap the object, the function this variable points to will be called. Inside your custom function, you can figure out which stamp, text object, or circle was tapped by using the special variable this.

This function puts some stamps on the screen. Whichever one you tap will dance.

It works the same way for text objects. Whichever text object you tap will dance.

And the same thing works for Circles as well. Whichever circle you tap will dance.