Unable to get strokeWeight working

edited February 2015 in Questions about Code

Hello All,

I am a newbie to Processing. For some reason I am unable to get the stroke weight working.

I am using it with a rectangle.

size(640,480); rect(160,120,200,300); strokeWeight(20);

I am working on my laptop. Could this be a graphics driver issue ?

Comments

  • edited February 2015

    you must use strokeWeight() before rect()

    • strokeWeight and stroke and fill etc. change only the colors / properties that come after it.
  • Thank you Chrisir ! That helped :)

  • edited February 2015

    you can format your code like this

        size(640,480); 
    
        strokeWeight(4);
    
        rect(160,120,200,300); 
    
Sign In or Register to comment.