Andor Salga

Test for bug 634

This page tests the fix for bug 634 for Processing.js
If the canvas and image below are identical, the test has passed.

// Test by Andor Salga
import processing.opengl.*;

void setup(){
  size(100,100,OPENGL);
  translate(width/2, height/2,0);
  stroke(0);

  beginShape(TRIANGLES);
  fill(256,0,0);
  vertex(0,-20,0);
  fill(0,256,0);
  vertex(-30,20,0);
  fill(0,0,256);
  vertex(30,20,0);
  endShape();
}