User Tools

Site Tools


part_7-_a_few_useful_global_variables

Processing Tutorial

Part 7: A Few Useful Global Variables and Tools

width - The width of the system display window.

Syntax:

if(width < 100)
  ...

height - The height of the system window.

Syntax:

if(height < 100)
  ...

pixels - An array containing every pixel in the window (including gray space). Syntax:

pixels[i];

screen.width - The width of the monitor

Syntax:

if(screen.width > 1000)
  ...

screen.height - The height of the monitor.

Syntax:

if(screen.height > 1000)
  ...

Color Picker

You can get the RGB and hexadecimal values of any color you can find by using the Color Picker. Go to the Tools menu, then choose Color Picker.


Prev: Part 6- Including outside code | Next: Part 8- Editing the pixels[] array

part_7-_a_few_useful_global_variables.txt · Last modified: 2007/09/10 17:22 by scarl