Bright Moments
  • Bright Moments
    • History
    • Roadmap
    • Governance
    • FAQ
  • CryptoCitizens
    • City Collections
    • Information Archive
      • Berlin
        • Nominations
        • Accommodations
      • London
        • Remote vs. Delegate Minting
        • Scheduling and Remote Minting Instructions
        • Golden Token London Etherscan Instructions
        • Nominations
          • Community Nominations Round 3
          • Community Nominations Round 2
          • Community Nominations Round 1
        • GTLN Purchase Instructions
        • Redeeming Mint Passes Using Gnosis
        • Printing Policy
      • Mexico City
        • GTMX Sale: Brightlist Etherscan Instructions
        • Mexico City Sale Eligibility
          • CDMX Dutch Auction Snapshots
          • GTMX Sale Snapshots
        • Nominations
        • Mexico City Collection Sale
        • La Revelación Competition
    • The Heist
  • Artist Collaborations
    • Artist Docs & Onboarding
      • Engine (Goerli)
      • Engine (Sepolia)
      • Flex Engine
        • Random Image Generator
    • Artist in Residence
    • 100 x 100
    • Venice Beach
      • Aaron Penne x Boreta
    • New York
      • Incomplete Control | Tyler Hobbs
      • Reflections | Jeff Davis
      • Velum | Harvey Rayner
        • Wallet Brightlist
    • Mexico City
    • Tokyo
    • Buenos Aires
    • Paris
  • Display Software
    • Getting Started
    • Device Management
    • Screen Management
    • Playlist Management
  • Policies
    • Amps.fun Policies
    • view.art Policies
    • Hashmark Delegation
    • Metropolis Match
    • Token Gating
    • Golden Token Terms of Service
    • Mint Pass Policy
    • Venice to Venice Trailer Giveaway
Powered by GitBook
On this page

Was this helpful?

  1. Artist Collaborations
  2. Artist Docs & Onboarding
  3. Flex Engine

Random Image Generator

PreviousFlex EngineNextArtist in Residence

Last updated 1 year ago

Was this helpful?

The "Random Image Generator" can be used in case that there is a batch of pre-rendered images.

The script is specific for the Artblocks Flex Engine and pulls images down from an folder hosted IPFS by Brightmoments.

  • The artist must provide images uploaded via google drive

  • The images are then hosted on IPFS via the Brightmoments Pinata account

  • Once images are hosted, The following snippet code can be added onto the AB test/mainnet:

    • This code is written using p5.js, so please ensure that this has been set in the AB config.

    • On the snippet, CID must be replaced with the CID of the hosted folder

    • Please ensure that the variable totalImages is the correct edition size

    • Please also ensure that tokenId is removed from line 30 and that

      selectImage(tokenId)

      is replaced with

      selectImage(tokenData.tokenId)

      as per the comments on the snippet

https://gist.github.com/Spongenuity/7e24e5ec994c3fadfff68f484274ab4e