strokeWeight (0.1) and strokeWeight (1) look exactly the same

Does it mean strokeWeight() is alway an integer because strokeWeight(1) means 1 pixel thickness and you can't have 0.1 pixels? is it the same in all programming languages? Thank you!

Tagged:

Answers

  • edited July 2017

    it looks like point(20,20) and point(20.9,20.9) are identical. however point(21,21); is diffirent.

  • Answer ✓

    it's not always an integer

    void setup(){
    }
    void draw(){
      background(255);
     scale(100); 
     strokeWeight(0.1);
     point(mouseX/100.,mouseY/100.);
    }
    
  • I see. Thanks

Sign In or Register to comment.