processing / processing/p5.js

[p5.js 2.0+ Bug Report]: Color String Representation Is Incorrect

Open
#8,843 8 comments 0 reactions 1 assignee View on GitHub

@noqokhxnh is already working on this.

Since Aug 14, 2026.

Area:Color Help Wanted p5.js 2.0+
Dominant language
JavaScript
Stars
24k
Forks
3.8k
Avg merge
3d 16h
Merged PRs (30d)
25

Description

Most appropriate sub-area of p5.js?
  • Accessibility
  • Color
  • Core/Environment/Rendering
  • Data
  • DOM
  • Events
  • Image
  • IO
  • Math
  • Typography
  • Utilities
  • WebGL
  • WebGPU
  • p5.strands
  • Build process
  • Unit testing
  • Internationalization
  • Friendly errors
  • Other (specify if possible)
p5.js version

2.2.3 (beta)

Web browser and version

Chrome 148.0.7778.179

Operating system

macOS 26.5

Steps to reproduce this

Color string representation is incorrect and causes issues if original color values are reassigned.

The color strings are transparent (with alpha set to 00), but the default alpha should be at the max (FF).

Image Image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.