Processing Library
HTML Java CSS Processing Other
Switch branches/tags
Nothing to show
Clone or download
keshrath Merge pull request #1 from fabianmoronzirfas/master
Make the README example copy&paste-able
Latest commit 924ce61 Apr 23, 2017
Permalink
Failed to load latest commit information.
data Version 1.0.2 May 10, 2016
distribution/Console Version 1.0.4 May 14, 2016
examples Version 1.0.2 May 10, 2016
lib Delete slf4j-simple.jar Jan 5, 2016
resources Version 1.0.4 May 14, 2016
src/at/mukprojects/console Version 1.0.4 May 14, 2016
web Version 1.0.0 Jan 2, 2016
.gitignore Version 1.0.2 May 10, 2016
LICENSE Version 1.0.0 Jan 2, 2016
README.md add missing { Apr 22, 2017

README.md

Console

Console is an library for the Processing Development Environment (PDE).

The console redirects the standard output and error stream. So by using the print or prinltn functions the input will be automatically redirected to the console. There are multiple ways to draw the console on the sketch screen. In the default mode the console will be rendered on the bottom of the screen with a black background and a white text color.

Example

import at.mukprojects.console.*;
Console console;

void setup(){
  // Initialize the console 
  console = new Console(this);
  
  // Start the console
  console.start();
}

void draw() {
  background(200);

  println("Frame: " + frameCount);
  
  // Draw the console to the screen.
  console.draw();
  
  // Print the console to the system out.
  console.print();
}

How to install

Download Console library from here.

Unzip and copy it into the libraries folder in the Processing sketchbook. You will need to create this libraries folder if it does not exist.

To find (and change) the Processing sketchbook location on your computer, open the Preferences window from the Processing application (PDE) and look for the "Sketchbook location" item at the top.

By default the following locations are used for your sketchbook folder:

  • For Mac users, the sketchbook folder is located inside ~/Documents/Processing
  • For Windows users, the sketchbook folder is located inside My Documents/Processing

The folder structure for library Console should be as follows:

Processing
  libraries
    Console
      examples
      	CustomConsole
      	 CustomConsole.pde
      	DefaultConsole
      	 DefaultConsole.pde
      library
        console.jar
        slf4j-api.jar
        slf4j-simple.jar
      reference
        docs
      src
      	../Console.java
      library.properties