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)
   strokeWeight()
« Previous topic | Next topic »

Pages: 1 
   Author  Topic: strokeWeight()  (Read 270 times)
bren

WWW Email
strokeWeight()
« on: Oct 28th, 2003, 12:26am »

strokeWeight() doesn't seem to make any difference - is it just me? (066)
 
REAS


WWW
Re: strokeWeight()
« Reply #1 on: Oct 28th, 2003, 3:07am »

bren,
 
please give a small example of it not working. it does work. for example copy and paste this:
Code:
strokeWeight(3.0);
line(20, 20, 80, 90);

 
+ casey
 
 
mKoser

WWW Email
Re: strokeWeight()
« Reply #2 on: Oct 28th, 2003, 10:44am »

i encountered this strange effect the other day when playing with strokeWidth():
 
Code:

void setup(){
  size(500, 500);
  stroke(255);
  fill(0, 15);
}
 
void loop(){
  noStroke();
  rect(0, 0, width, height);
 
  strokeWeight(20.0);
  stroke(255);
  line(pmouseX, pmouseY, mouseX, mouseY);
}

 
funny, no?
 
..ok not really anything related to anything, i just felt like sharing this odd little thing
 

mikkel crone koser | www.beyondthree.com | http://processing.beyondthree.com
bren

WWW Email
Re: strokeWeight()
« Reply #3 on: Oct 28th, 2003, 11:07am »

it doesn't seem to work with a six parameter line though? It just makes the lines dissapear.
 
toxi

WWW
Re: strokeWeight()
« Reply #4 on: Oct 28th, 2003, 11:08am »

casey, i think bren encountered the old bug with strokeWidth() when using 3d transforms:
 
Code:
void draw() {
  strokeWeight(3);
  rotateX(PI/4);
  line(0,50,100,100);
}

 
this will not draw anything, while you can see the line when you remove the strokeWeight() call.
 

http://toxi.co.uk/
bren

WWW Email
Re: strokeWeight()
« Reply #5 on: Oct 28th, 2003, 11:30am »

I think it is that. The weird thing is I can do a strokeWeight from 1 to 1.9 without the lines dissapearing (though the line weight doesn't alter). But when I go 2.0 or above all the lines become invisible.
 
mflux

fluxhavoc WWW
Re: strokeWeight()
« Reply #6 on: Oct 29th, 2003, 10:10am »

As we have discovered in class,
 
strokeWeight(2);
translate(0,0,20);
line(0,0,200,200);
 
Does not work. I have tried many variations of this, and could find no work-around.
 
Pages: 1 

« Previous topic | Next topic »