Page cover

How To Inscribe A Recursive Ordinal

Using P5.JS + OCM Dimensions Library

In order to inscribe a recursive ordinal using P5.JS you will need to follow these steps

  1. Go to Github and sign up for an account https://github.com/arrow-up-right

  2. Download Github desktop and log in to your Github account. https://desktop.github.com/arrow-up-right

  3. Go to https://p5js.org/arrow-up-right and sign up for an account

  4. Download the P5.JS library https://p5js.org/download/arrow-up-right

  5. Go to the Editor, and familiarize yourself with the user interface https://editor.p5js.org/arrow-up-right

    1. This is where you will create your art. Using a sketch.js file.

  6. Go to the node.js website and dowsnload node.js https://nodejs.org/enarrow-up-right

  7. The make command is stock on a mac, but for windows click http://gnuwin32.sourceforge.net/packages/make.htmarrow-up-right

  8. Click on Code and than download the zip file and unzip it.

  9. Open up visual studio code

  10. To install OCM dimensions:

    1. Open up your terminal, in VSC or on your PC/MAC and run:

    2. git clone https://github.com/metagood/OCM-Dimensions.git cd OCM-Dimensions

  11. Next Navigate to the "p5js directory with cd ../p5js"

  12. Place the javascript code from your P5.JS sketch file in "input/02_main.js".

  13. Next run "make clean && make" in the terminal

  14. The final file will be "index.html"

  15. To check if the recursion worked before inscribing, open "index.html" and search and replace "fetch(/content/" with "fetch(https://ordinals.com/content/arrow-up-right" (2 places)

Last updated