Provide attributes to your artworks

  • The attribute is a Map, the key is the attribute name, and the value is the attribute value. The attribute value can be suggested to use string, number, or boolean value type.

  • You can set the properties of your work through Genify.setGenFeatures() every time you render, so that your work can have scarcity in Genify.

var features = {
    "eyes": "blue",
    "hair": "brown",
    "skin": "white",
    "clothes": "red",
    "accessories": "none"
};
Genify.setGenFeatures(features);
  • You can also directly set the properties of your works through window.$genFeatures on the page, so that your works can have scarcity in Genify.

window.$genFeatures = {
    "eyes": "blue",
    "hair": "brown",
    "skin": "white",
    "clothes": "red",
    "accessories": "none"
    };

Last updated