The code contains of the below parts -
base interceptor Interceptors refer to the class that is called over the execution of the p5 function. It then called the respective entity (through register) and takes 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 which Entity takes care of which p5 function
The data is essentially a list of all functions, their parameters and outputs. This file it generated by the p5.js library and used here.
I've made some edits here: https://gist.github.com/lm-n/e9f3bb7929f6702a0f6fd42b2240440a