Skip to content

Points are not showing up #4345

Open
Open

Description

@OutUnity

p5.js version

https://editor.p5js.org/o2460007/sketches/6WY_Otv5f

What is your operating system?

Windows

Web browser and version

153.0.8010.53 (Official Build) (64-bit) (cohort: Stable Installs & Version Pins)

Actual Behavior

When creating a point the visuals seems to disappear after an x value of 256 on any canvas size.
Checked strokeWeight, stroke, coding structure.
This seems to only happen on the Windows version, as Chromebook will show show the point.

Expected Behavior

I'm expecting to see points no matter the version of the browser used to create the object.

Steps to reproduce

Steps:

Snippet:

steps:
1. create a point at location (255, (any y value))
2. increase the x value to 256. eg (256, 300);
3. point disappears visually on canvas

// Paste your code here :)
function setup() {
  createCanvas(400, 400);
  background(255);
  strokeWeight(25);
  point(256, 300);
}

Activity

  1. aniruddh18122006-cyber commented on Oct 8, 2026

    @aniruddh18122006-cyber

    Hi! I’d like to work on this issue as part of the Build 2026 × ByteAsk Open-Source Challenge.

    The x=255 → x=256 boundary looks particularly interesting, especially since the behavior appears to be Windows-specific. I’d like to first reproduce it across Windows/browser configurations, trace where the point rendering starts failing at that boundary, and then add a regression test alongside the fix.

    I’ll keep the change focused on the underlying rendering issue rather than changing the expected "point()" behavior.

    Would it be okay for me to investigate and submit a PR for this?

  2. Tainmere commented on Oct 12, 2026

    @Tainmere

    When using the version switcher in the p5.js editor, the points show up with version <= 2.3.0, the first time the bug shows up for me is with version 2.3.1.

    For me the bug also occurs when using Chrome while Firefox still works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Awaiting Maintainer ApprovalNeeds review from a maintainer before moving forwardBugError or unexpected behaviors

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions