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 Mon Sep 21 15:53:24 2020.

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