Skip to content
This repository was archived by the owner on Sep 22, 2024. It is now read-only.

first random walk example shows nothing; need strokeWeight? #128

Open
dandrake opened this issue Aug 11, 2024 · 0 comments
Open

first random walk example shows nothing; need strokeWeight? #128

dandrake opened this issue Aug 11, 2024 · 0 comments

Comments

@dandrake
Copy link

I'm trying the first random walk example, and it shows nothing at all. I'm using Firefox 129 on Ubuntu, and the live p5js editor site.

It seems that the point() function isn't showing 1-pixel points. If I change the show() function to have strokeWeight(2), I see the path.

I suspect a rounding error, or maybe just something weird with my browser / screen resolution / graphics driver -- I can use stroke weights slightly larger than 1 and they display. The cutoff seems to be around 1.008; smaller than that, and nothing is shown; larger than that, and I do see a random walk.

Interestingly, I can zoom the page (ctrl-+) and then strokeWeight(1) does show the path!

I guess this is mostly an FYI kind of issue in case others report this.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant