Andor Salga

Test for bug 277

This page tests the fix for bug277 in Processing.js
This page creates a canvas with a width of 123 of height of 456 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
void setup() {
  size(100, 100, P3D);
}

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