Skip to content

[p5.js 2.0 RFC Proposal]: Add a way to simulate color blindness #6775

Open
@nickmcintyre

Description

@nickmcintyre

Increasing access

A simple tool for simulating color blindness will make it easier for people to ensure their sketches accessible to people with color blindness.

Which types of changes would be made?

  • Breaking change (Add-on libraries or sketches will work differently even if their code stays the same.)
  • Systemic change (Many features or contributor workflows will be affected.)
  • Overdue change (Modifications will be made that have been desirable for a long time.)
  • Unsure (The community can help to determine the type of change.)

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)

What's the problem?

There's no easy way for people to ensure their sketches are accessible to people with color blindness. Doing so requires research and third-party software such as Color Oracle.

What's the solution?

I propose adding ways to simulate color blindness and to help coders adjust colors so that their canvases are more accessible. These tools should be available in p5.js by default. Doing so would help folks to get in the habit of making their sketches more accessible early in the design process.

@hx2A's ColorBlindness library could serve as a starting point for the design and implementation. We could add new functions or perhaps new filters for filter().

Pros (updated based on community comments)

TBD

Cons (updated based on community comments)

TBD

Proposal status

Under review

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Open for Discussion

Relationships

None yet

Development

No branches or pull requests

Issue actions