Skip to content

Internal refactor: deduplicate shared math in color conversion utilities #8566

@Harishvishwa01

Description

@Harishvishwa01

Most appropriate sub-area of p5.js?

  • Accessibility
  • Color
  • Core/Environment/Rendering
  • Data
  • DOM
  • Events
  • Image
  • IO
  • Math
  • Typography
  • Utilities
  • p5.strands
  • WebGL
  • DevOps, Build process, Unit testing
  • Internationalization (i18n)
  • Friendly Errors
  • Other (specify if possible)

p5.js version

No response

Web browser and version

No response

Operating system

No response

Steps to reproduce this

Steps:

  1. Check out the current main branch of p5.js.
  2. Run the existing test suite and lint checks.
  3. Apply this refactor and re-run the same tests.

Snippet:

// This change is an internal refactor only.
// No runtime snippet is required because behavior is unchanged.
// Verification is done via existing tests and manual sketches.

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