Skip to content

Turning on accessible canvas settings causes sketches to break #2188

Closed
@davepagurek

Description

@davepagurek

Details about the bug:

  • p5.js version: 1.6.0
  • Web browser and version: Firefox 111.0.1 (also reported from another user on Chrome)
  • Operating System: MacOS 12.5.1
  • Steps to reproduce this:

Example sketch:

function setup() {
  createCanvas(400, 400);
}

function draw() {
  background('red');
}

Then check this box in settings:
image

While normally this would just make a red canvas, with that setting turned on, we just get an error:
image

The error is coming from the p5.accessibility library editing the behaviour of colour functions:
image

Looking at the repo here https://github.com/processing/p5.accessibility it seems like it's no longer maintained. Is there an alternative that can be used? In the mean time, it seems to be broken.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area:AccessibilityCategory for accessibility related features and bugsPriority:HighShould be addressed soon but not critical

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions