We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpOpenGL and 3D Libraries › getting rid of grid lines?
Page Index Toggle Pages: 1
getting rid of grid lines?? (Read 555 times)
getting rid of grid lines??
Apr 7th, 2006, 12:58am
 
Hello,

I am new to processing. This is from the examples. When I render it with openGL why do grid lines appear in the circle?  It happens when I try to fill it too.  How do I get rid of them?

Thanks,

jrmy

----

import processing.opengl.*;

int size = 60;       // Width of the shape
float xpos, ypos;    // Starting position of shape    

float xspeed = 2.8;  // Speed of the shape
float yspeed = 2.2;  // Speed of the shape

int xdirection = 1;  // Left or Right
int ydirection = 1;  // Top to Bottom


void setup()
{
 size(200, 200, OPENGL);
 noStroke();
 framerate(30);
 smooth();
 // Set the starting position of the shape
 xpos = width/2;
 ypos = height/2;
}

void draw()
{
 background(102);
 
 // Update the position of the shape
 xpos = xpos + ( xspeed * xdirection );
 ypos = ypos + ( yspeed * ydirection );
 
 // Test to see if the shape exceeds the boundaries of the screen
 // If it does, reverse its direction by multiplying by -1
 if (xpos > width-size || xpos < 0) {
   xdirection *= -1;
 }
 if (ypos > height-size || ypos < 0) {
   ydirection *= -1;
 }

 // Draw the shape
 ellipse(xpos+size/2, ypos+size/2, size, size);
}
Re: getting rid of grid lines??
Reply #1 - Apr 7th, 2006, 1:50pm
 
it's a bug, sorry:
http://dev.processing.org/bugs/show_bug.cgi?id=200
Page Index Toggle Pages: 1