Skip to content

Instantly share code, notes, and snippets.

@MathuraMG
Last active May 3, 2018 04:31
Show Gist options
  • Save MathuraMG/3e45edecae69507317cdf464332137fd to your computer and use it in GitHub Desktop.
Save MathuraMG/3e45edecae69507317cdf464332137fd to your computer and use it in GitHub Desktop.

The code contains of the below parts -

Interceptors

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.

@lm-n
Copy link

lm-n commented May 3, 2018

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