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 identical in this test case.

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

// Test from Processing.org
void setup() {
  size(100, 100, P3D);
}

void draw() {
  background(0);
  noStroke();
  pointLight(51, 102, 126, 35, 40, 36);
  noStroke();
  translate(80, 50, 0);
  sphere(30);
}