Skip to content

[p5.js 2.0 Beta Bug Report]: Color maxes seem to not match #7714

Closed
@ksen0

Description

@ksen0

Most appropriate sub-area of p5.js?

  • Accessibility
  • Color
  • Core/Environment/Rendering
  • Data
  • DOM
  • Events
  • Image
  • IO
  • Math
  • Typography
  • Utilities
  • WebGL
  • Build process
  • Unit testing
  • Internationalization
  • Friendly errors
  • Other (specify if possible)

p5.js version

2.0 beta.6

Web browser and version

Chrome

Operating system

No response

Steps to reproduce this

Steps:

  1. Using RGB mode
  2. Use background to set color, provide a color that is out of bounds (larger than max
  3. Observe that the color renders white , rather than capping the out of bounds value at the max

This is inconsistent with previous behavior

Snippet:

https://editor.p5js.org/ksen0/sketches/_GydnNiLx
( Using code from tutorial https://beta.p5js.org/tutorials/organizing-code-with-functions/)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions