Andor Salga

Test for bug 277

This page tests the fix for bug277 in Processing.js
This page creates a canvas without a width and height and attempts to
load a sketch which uses a call to size(100,100,P3D). That is, the dimensions in the HTML
and Processing sketch are not the same in this test case.
Also, instead of using the datasrc attribute, this page calls Processing(canvas, source);

If a sphere is rendered in the canvas, the test has passed.

// Test from Processing.org
import processing.opengl.*;

void setup() {
  size(100, 100, P3D);
}

void draw() {
  background(33,66,99);
  translate(width/2, height/2, 0);
  sphere(30);
}