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

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — JavaScript mode examples updated for Processing 1.4.0 · Variablefrog/processing@e84ace1

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • javascript/examples
    • Environment
      • DocumentObjectModel
        • colorFinder
          • jsinterface.js
        • nodeTree
          • forrest.js
        • selectionFlower
          • selectionmonitor.js
      • Input
        • fileReader
          • reader.js
        • lockedIn
          • promt.js
    • HTML5
      • Audio/blobb
        • snd.js
      • DragDrop/wordDroppings
        • drag_drop.js
      • Input
        • colorRange
          • inteface.js
        • variableInputs
          • interface.js
      • Video/charmyDance
        • charmyDance.pde
        • data
          • charmy.mp4
          • charmy.ogv
          • charmy.webm
    • Libraries/Box2D/simpleBox2D
      • magic.js
    • Services
      • Flickr/flickrSearch
        • flix.js
      • Twitter/twitterGewitter
        • twitt.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎javascript/examples/Environment/DocumentObjectModel/colorFinder/jsinterface.js‎

Copy file name to clipboardExpand all lines: javascript/examples/Environment/DocumentObjectModel/colorFinder/jsinterface.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
// Get the instance. We just use the first one. Another way would be to use
1616
// the automaticaly generated ID "colorFinder", see <canvas> in index.html
17-
var mySketchInstance = Processing.instances[0];
17+
var mySketchInstance = Processing.getInstanceById( getProcessingSketchID() );
1818

1919
if ( mySketchInstance == undefined ) { // means it has not started
2020
setTimeout( makeTheLink, 200 ); // try again later
Collapse file

‎javascript/examples/Environment/DocumentObjectModel/nodeTree/forrest.js‎

Copy file name to clipboardExpand all lines: javascript/examples/Environment/DocumentObjectModel/nodeTree/forrest.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ window.onload = function () {
55
}
66

77
function tryFindSketch () {
8-
var sketch = Processing.instances[0];
8+
var sketch = Processing.getInstanceById( getProcessingSketchID() );
99
if ( sketch == undefined )
1010
setTimeout(tryFindSketch, 200); // retry after 0.2 secs
1111
else
Collapse file

‎javascript/examples/Environment/DocumentObjectModel/selectionFlower/selectionmonitor.js‎

Copy file name to clipboardExpand all lines: javascript/examples/Environment/DocumentObjectModel/selectionFlower/selectionmonitor.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ window.onload = function () {
1212

1313
// this is called (repeatedly) to find the sketch
1414
function getSketchInstance() {
15-
var s = Processing.instances[0];
15+
var s = Processing.getInstanceById(getProcessingSketchID());
1616
if ( s == undefined ) {
1717
setTimeout(getSketchInstance, 200); // try again a bit later
1818

Collapse file

‎javascript/examples/Environment/Input/fileReader/reader.js‎

Copy file name to clipboardExpand all lines: javascript/examples/Environment/Input/fileReader/reader.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ window.onload = function () {
44
}
55

66
function tryFindSketch() {
7-
var sketch = Processing.instances[0];
7+
var sketch = Processing.getInstanceById(getProcessingSketchID());
88
if ( sketch == undefined )
99
return setTimeout(tryFindSketch, 200); // retry soon
1010

Collapse file

‎javascript/examples/Environment/Input/lockedIn/promt.js‎

Copy file name to clipboardExpand all lines: javascript/examples/Environment/Input/lockedIn/promt.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ window.onload = function () {
66

77
// find sketch instance
88
function tryFindSketch () {
9-
var sketch = Processing.instances[0];
9+
var sketch = Processing.getInstanceById(getProcessingSketchID());
1010
if ( sketch == undefined )
1111
setTimeout( tryFindSketch, 200 ); // try again in 0.2 secs
1212
else
Collapse file

‎javascript/examples/HTML5/Audio/blobb/snd.js‎

Copy file name to clipboardExpand all lines: javascript/examples/HTML5/Audio/blobb/snd.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ window.onload = function () {
44
var audioNode = document.getElementsByTagName("audio")[0];
55

66
function tryFindSketch () {
7-
var sketch = Processing.instances[0];
7+
var sketch = Processing.getInstanceById(getProcessingSketchID());
88
if ( sketch == undefined )
99
setTimeout(tryFindSketch,200); // retry
1010
else
Collapse file

‎javascript/examples/HTML5/DragDrop/wordDroppings/drag_drop.js‎

Copy file name to clipboardExpand all lines: javascript/examples/HTML5/DragDrop/wordDroppings/drag_drop.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ window.onload = function () {
66

77
// try and find the sketch
88
function tryLinkSketch() {
9-
var sketch = Processing.instances[0];
9+
var sketch = Processing.getInstanceById( getProcessingSketchID() );
1010
if ( sketch == undefined )
1111
setTimeout(tryLinkSketch, 200); /*try again later*/
1212
else {
Collapse file

‎javascript/examples/HTML5/Input/colorRange/inteface.js‎

Copy file name to clipboardExpand all lines: javascript/examples/HTML5/Input/colorRange/inteface.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ window.onload = function () {
66
}
77

88
function tryFindSketch () {
9-
var sketch = Processing.instances[0];
9+
var sketch = Processing.getInstanceById(getProcessingSketchID());
1010
if ( sketch == undefined )
1111
return setTimeout(tryFindSketch, 200); // try again ..
1212

Collapse file

‎javascript/examples/HTML5/Input/variableInputs/interface.js‎

Copy file name to clipboardExpand all lines: javascript/examples/HTML5/Input/variableInputs/interface.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ window.onload = function () {
33
}
44

55
function tryFindSketch () {
6-
var sketch = Processing.instances[0];
6+
var sketch = Processing.getInstanceById(getProcessingSketchID());
77
if ( sketch == undefined ) return setTimeout(tryFindSketch, 200);
88

99
var controller = new Controller(sketch,"form-form");
Collapse file

‎javascript/examples/HTML5/Video/charmyDance/charmyDance.pde‎

Copy file name to clipboardExpand all lines: javascript/examples/HTML5/Video/charmyDance/charmyDance.pde
+1-3Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,12 @@
1313
* <video width="480" height="360" style="display:none">
1414
* <source src="charmy.mp4" />
1515
* <source src="charmy.ogv" />
16+
* <source src="charmy.webm" />
1617
* </video>
1718
*/
1819

1920
Video video;
2021
PImage frame;
21-
float fSec = 1/25.0;
22-
int fMillis = int(1000 * fSec);
23-
int ts = 0;
2422

2523
void setup ()
2624
{

0 commit comments

Comments
0 (0)
You are visitor 01402520 — 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.