If you're seeing this message, it means we're having trouble loading external resources on our website.

If you're behind a web filter, please make sure that the domains *.kastatic.org and *.kasandbox.org are unblocked.

Main content

Course: Unlisted resources area > Unit 2

Lesson 1: ProcessingJS documentation

Program.restart()

Calling Program.restart() will restart the program in the same way as when the user clicks the "Restart" button. This would most commonly be used inside one of the mouse callback functions.

Want to join the conversation?

No posts yet.