On-Chain Art
Links about on-chain art
Each Pulsquares token has a tokenId and a 32 byte tokenTraits number which is used by a p5js script to render the output. Currently each token's metadata is stored on https://content.pulsquares.art as are the images and videos linked in the metadata. A PulsquaresRecipeV1 contract has the facility to store the p5js code used to render the output as well as ipfs content identifier for the script.
The tokenURI function of the Corruptions contract returns a base64 encoded string of the JSON encoded metadata for each token. The JSON encoded metadata contains a base64 encoded SVG Image for the image attribute.
Noun parts are stored compressed with run length encoding, each part is converted to an intermediate format before being converted into a series of SVG rects using string concatenation. The SVG is then base64 encoded
Images are returned as base64 encoded SVG images. Metadata and images are rendered by the Metadata contract
A token hash is stored by the contract for each Chromie Squiggle. The token hash is passed to a p5js script to render the output. The p5js script can be obtained from the ArtBlocks contract by calling the projectScriptByIndex function and passing a project id of 0. metadata is hosted on https://token.artblocks.io/. the animation_url in the metadata points to https://generator.artblocks.io which returns a html page containing the p5js script from the contract and links to a cdn hosted copy of the p5js library
Terraforms