From ebf811098d27dfaf8bea51bf026284491fc89c3e Mon Sep 17 00:00:00 2001 From: f1lt3r Date: Sat, 28 Nov 2009 15:34:53 -0500 Subject: [PATCH] Added tutorial function. --- example.pjs | 1 + processing.js | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/example.pjs b/example.pjs index 927f5c015..6305b250d 100644 --- a/example.pjs +++ b/example.pjs @@ -1,2 +1,3 @@ // Draws a green square... background( 0, 255, 0 ); +alert( tutorial() ); diff --git a/processing.js b/processing.js index ffed409a9..ceecc8b4f 100644 --- a/processing.js +++ b/processing.js @@ -397,7 +397,11 @@ // The current animation frame p.frameCount = 0; - + + p.tutorial = function tutorial(){ + return "HEY!"; + } + //////////////////////////////////////////////////////////////////////////// // Array handling