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 Sun Nov 26 15:34:43 2017.
Creative Commons License