GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Processing
  • Download
  • Reference
  • Environment
  • Libraries
  • Tools
  • Wiki
  • Tutorials
  • Examples
  • Books
  • Forum
  • Overview
  • People
  • Privacy

This view

  • Original page
  • New address

GeezerVison is showing processing.org — void / Reference

Reference+
Documentation→Reference→Structure

Name

void

Description

Keyword used to indicate that a function returns no value. Each function must either return a value of a specific datatype or use the keyword void to specify it returns nothing.

Examples

  • void setup() {  // setup() does not return a value
      size(200, 200);
    }
    
    void draw() {  // draw() does not return a value
      line(10, 100, 190, 100);
      drawCircle();
    }
    
    void drawCircle() {  // This function also does not return a value
      ellipse(30, 30, 50, 50);
    }
    

Syntax

  • void function {
  • statements
  • }

Parameters

  • functionany function that is being defined or implemented
  • statementsany valid statements
Creative Commons License

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.