Skip to content
This repository was archived by the owner on Sep 22, 2024. It is now read-only.
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

Description

@dandrake

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions