Page cover image

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/

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

  3. Download Visual Studio Code https://code.visualstudio.com/

  4. Go to https://p5js.org/ and sign up for an account

  5. Download the P5.JS library https://p5js.org/download/

  6. Go to the Editor, and familiarize yourself with the user interface https://editor.p5js.org/

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

  7. Go to the node.js website and dowsnload node.js https://nodejs.org/en

  8. The make command is stock on a mac, but for windows click http://gnuwin32.sourceforge.net/packages/make.htm

  9. Go to the On Chain Monkey's Github https://github.com/metagood/OCM-Dimensions

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

  11. Open up visual studio code

  12. 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

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

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

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

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

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

Last updated