Giter VIP home page Giter VIP logo

art-engine-template-with-plugins's People

Contributors

hashlips avatar

Stargazers

Mario Alexander Sequera avatar  avatar  avatar  avatar Jawad Raza avatar

Watchers

 avatar  avatar

Forkers

josuempia

art-engine-template-with-plugins's Issues

Question: Multiple Species/ Genders

I have two genders in my NFT collection. Male and Female each with their respective layers which don't all work together.

I am thinking it would be best to have a folder structure of Male/FolderForEachLayer... and Female/FolderForEachLayer...

How do i achieve this with this template?

Would the below work/ make sense?

inputs: {
    male: new inputs.ImageLayersInput({
      assetsBasePath: `${BASE_PATH}/../male_data`,
    }),
    female: new inputs.ImageLayersInput({
      assetsBasePath: `${BASE_PATH}/../female_data`,
    }),
  },

  generators: [
    new generators.ImageLayersAttributesGenerator({
      dataSet: "male",
      startIndex: 1,
      endIndex: 10,
    }),
    new generators.ImageLayersAttributesGenerator({
      dataSet: "female",
      startIndex: 11,
      endIndex: 20,
    }),
  ],

  renderers: [
    new renderers.ItemAttributesRenderer({
      name: (itemUid: string) => `NFT ${itemUid}`,
      description: (attributes: any) => {
        return `This is a token with "${attributes["Background"][0]}" as Background`;
      },
    }),
    new renderers.ImageLayersRenderer({
      width: 2048,
      height: 2048,
    }),
  ],

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.