Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save lm-n/e9f3bb7929f6702a0f6fd42b2240440a to your computer and use it in GitHub Desktop.
Save lm-n/e9f3bb7929f6702a0f6fd42b2240440a to your computer and use it in GitHub Desktop.

The p5.accessibility library is made of the following parts:

Interceptors

Interceptors refer to the class that is called over the execution of each p5 function. The interceptors call the respective entities (through register) and take the required information that is displayed to the user.

Refers to a class that takes care of specific p5 functions All of the entities are registered in a registry. This is done so that when a function is called, the program knows which entity needs to be used.

  • Base entity (base class)
  • Fill entity (takes care of fill function)
  • Shape entity (takes care of all the 2d shape functions)

This class contains a register of entities and their respective p5 functions

The data is essentially a list of all functions, their parameters, and outputs. This file it generated by the p5.js library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment