FAQ
Cover
This is the archive Discourse for the Processing (ALPHA) software.
Please visit the new Processing forum for current information.

   Processing 1.0 _ALPHA_
   Programming Questions & Help
   Syntax
(Moderators: fry, REAS)
   beginShape_ HELP!
« Previous topic | Next topic »

Pages: 1 
   Author  Topic: beginShape_ HELP!  (Read 495 times)
andrew_r


beginShape_ HELP!
« on: Feb 6th, 2004, 5:33pm »

Have created a simple beginShape (LINE_LOOP), as in the tutorials given... (draw a normal square)
 
The shape does not re-draw properly - the last connecting line fades out and the shape cannot be filled.  
 
Is this a bug _ am using Mac OSX.2....
 
REAS


WWW
Re: beginShape_ HELP!
« Reply #1 on: Feb 6th, 2004, 5:37pm »

this seems to be a bug. you can fix it by repeating the first vertex point.
 
Code:

beginShape(LINE_LOOP);  
vertex(30, 20);  
vertex(85, 20);  
vertex(85, 75);  
vertex(30, 75);  
vertex(30, 20);  
endShape();  
« Last Edit: Feb 6th, 2004, 5:40pm by REAS »  
andrew_r


Re: beginShape_ HELP!
« Reply #2 on: Feb 6th, 2004, 6:24pm »

Thanks, the shape now draws correctly - but still having trouble using the fill(); ......
 
toxi

WWW
Re: beginShape_ HELP!
« Reply #3 on: Feb 6th, 2004, 8:45pm »

andrew, any LINE shape will not be filled by definition. if you want filled polygons, you'll have to use QUADS, QUAD_STRIP or the TRIANGLE versions.
 

http://toxi.co.uk/
Pages: 1 

« Previous topic | Next topic »