Difference between revisions of "GSDP:GAM100/CProcessing/size()"

From Inside
Jump to: navigation, search
>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...)
 
>Zachary.logsdon
 
(2 intermediate revisions by the same user not shown)
Line 19: Line 19:
  
 
   // Set the background to white
 
   // Set the background to white
   background(255, 255, 255, 255);
+
   background(color(255, 255, 255, 255));
 
}
 
}
 
</syntaxhighlight>
 
</syntaxhighlight>
Line 25: Line 25:
 
==== Related ====                             
 
==== Related ====                             
 
* [[GSDP:GAM100/CProcessing                          |Main Page                ]]
 
* [[GSDP:GAM100/CProcessing                          |Main Page                ]]
 +
* [[GSDP:GAM100/CProcessing/setWindowTitle()          |setWindowTitle()        ]]                                     
 
* [[GSDP:GAM100/CProcessing/background()              |background()            ]]
 
* [[GSDP:GAM100/CProcessing/background()              |background()            ]]
* [[GSDP:GAM100/CProcessing/backgroundColor()        |backgroundColor()        ]]
 
 
* [[GSDP:GAM100/CProcessing/fill()                    |fill()                  ]]
 
* [[GSDP:GAM100/CProcessing/fill()                    |fill()                  ]]
* [[GSDP:GAM100/CProcessing/fillColor()              |fillColor()              ]]
 
 
* [[GSDP:GAM100/CProcessing/noFill()                  |noFill()                ]]
 
* [[GSDP:GAM100/CProcessing/noFill()                  |noFill()                ]]
 
* [[GSDP:GAM100/CProcessing/stroke()                  |stroke()                ]]
 
* [[GSDP:GAM100/CProcessing/stroke()                  |stroke()                ]]
* [[GSDP:GAM100/CProcessing/strokeColor()            |strokeColor()            ]]
 
 
* [[GSDP:GAM100/CProcessing/noStroke()                |noStroke()              ]]
 
* [[GSDP:GAM100/CProcessing/noStroke()                |noStroke()              ]]
 
* [[GSDP:GAM100/CProcessing/strokeWeight()            |strokeWeight()          ]]
 
* [[GSDP:GAM100/CProcessing/strokeWeight()            |strokeWeight()          ]]
 
* [[GSDP:GAM100/CProcessing/size()                    |size()                  ]]
 
* [[GSDP:GAM100/CProcessing/size()                    |size()                  ]]
 
* [[GSDP:GAM100/CProcessing/fullscreen()              |fullscreen()            ]]
 
* [[GSDP:GAM100/CProcessing/fullscreen()              |fullscreen()            ]]
 +
* [[GSDP:GAM100/CProcessing/fullscreenAdvanced()      |fullscreenAdvanced()    ]]
 +
* [[GSDP:GAM100/CProcessing/blendMode()              |blendMode()              ]]
 
* [[GSDP:GAM100/CProcessing/cursor()                  |cursor()                ]]
 
* [[GSDP:GAM100/CProcessing/cursor()                  |cursor()                ]]
 
* [[GSDP:GAM100/CProcessing/noCursor()                |noCursor()              ]]
 
* [[GSDP:GAM100/CProcessing/noCursor()                |noCursor()              ]]

Latest revision as of 12:57, 13 October 2019

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(color(255, 255, 255, 255));
}

Related

Personal tools
Namespaces

Variants
Actions
Navigation
NameSpaces:>
Tools
Dynamic:>