Name

def

Examples
def tinySquare(x, y): # Use "def" to define a function tinySquare.
    squareSize = 10
    rect(x, y, squareSize, squareSize) 

rectMode(CENTER)

background(0)
tinySquare(width/2, height/2)
Description The keyword def introduces a function definition. It is followed by a function name, and a paranthesized list of parameters.
Syntax
	def functionName():
	    statements
Parameters

Updated on Tue Feb 27 14:07:12 2024.

If you see any errors or have comments, please let us know.