Skip to content

Distortion is a fully hand-typed 100% on-chain art collection limited to 1,000 pieces. It is designed to be displayed with no external browser libraries (e.g. p5js).

License

Notifications You must be signed in to change notification settings

null-ish/Distortion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Distortion

The contract for the Distortion airdrop.

Site: https://0xdistortion.com

Important Functions

  • airdrop(address[] memory _to, uint256[][] memory _tokenIds)

    • Airdrop specific tokens to specific addresses.
    • Proper token IDs owned by specific users can be taken from a snapshot on a certain block.
  • disableAirdrop()

    • Disables the airdrop function forever.
    • Must be used after all tokens were airdropped.

Generative Art Functions

  • generateNum()/generateNumUint()

    • Generates an arbitry number (string/uint) based on an input with uint(keccak256(...))
  • genDefs()

    • Generates the SVG definitions which include xy frequencies and scale for the Distortion piece.
  • getFrequency()

    • Calculates the display frequency which is the product of the x and the y frequencies (for metadata display).
  • genMiddle()/genSquares()/genEnd()

    • Generates the middle, end and squares of the art piece.
    • Sets the specific color.
  • generateDistortion()

    • Puts everything together and is called inside the tokenURI() function.

About

Distortion is a fully hand-typed 100% on-chain art collection limited to 1,000 pieces. It is designed to be displayed with no external browser libraries (e.g. p5js).

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published