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 Jul 11 06:52:23 2017.
Creative Commons License