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);
  background(0);
  colorMode(RGB, 1);

  beginShape(POINT);
  pushMatrix();

  for(int y = 0; y < 100; y+=5){
  for(int x = 0; x < 100; x+=5){
      stroke(x/100.0f,y/100.0f,100-x/100.0f);
      vertex(x, y, 0);
    }
  }
  popMatrix();

  endShape();
}