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.
Page Index Toggle Pages: 1
Line bug? (Read 1452 times)
Line bug?
Apr 21st, 2005, 11:05am
 
Hi,

I was playing around with the 0.85 Beta software and wanted to recreate the Sonia spectrum analyser based on the liveinput sample. I noted some strange things happening to the Line output. So I decided to create a small application for it to test it further:

void setup()
{
  size(512,200);
}

void draw()
{
 float meterDataLeft = 0.2;
 
 strokeWeight(100);
 stroke(0,100,0);
 float left = meterDataLeft*height;
 
 line(width/2 - 120, height, width/2 - 120 , height - left);
 
 line(300, 40, 300, 50);
}

Thing is that the lines become rounded lines. Is there something I'm missing in the new version because in the old 0.69 Alpha it would render like a simple block.

Grz, Kris.
Re: Line bug?
Reply #1 - Apr 21st, 2005, 11:08am
 
Seems the default has become strokeCap(ROUND)? Because when I put in this line:

strokeCap(SQUARE) things work like I would want it to.

Actually I find this strange because the documentation says:

... The default cap is SQUARE. ...

Grz, Kris.
Re: Line bug?
Reply #2 - May 7th, 2005, 7:46pm
 
yeah, we changed the default cap at the last minute because SQUARE was making point() disappear on most machines. although it seems that there are other problems with point() anyway, so who knows.

moving this one to the reference bugs area in case mr. casey hasn't yet updated the ref for strokeCap().
http://processing.org/reference/strokeCap_.html
Re: Line bug?
Reply #3 - May 8th, 2005, 8:01pm
 
OK. Default is changed to ROUND in the docs. Will update soon...
Page Index Toggle Pages: 1