GSDP:GAM100/CProcessing/size()

From Inside
< GSDP:GAM100‎ | CProcessing
Revision as of 14:32, 21 September 2018 by >Lya.vera (New page: {{GSDP:GAM100API.css}} = size() = == Description == The function size() modifies the size of the window. Typically, the window size is set in the init function. === Parameters === size(w...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

size()

Description

The function size() modifies the size of the window. Typically, the window size is set in the init function.

Parameters

size(width, height)

  • width - (int) the width to set the window to
  • height - (int) the height to set the window to

Example

void init() 
{
  // Set the window size to a small square
  size(10, 10);

  // Set the background to white
  background(255, 255, 255, 255);
}

Related

Personal tools
Namespaces

Variants
Actions
Navigation
NameSpaces:>
Tools
Dynamic:>