forked from HashLips/hashlips_art_engine
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: generate custom attributes, closes HashLips#1192
- Loading branch information
Lorenzo spinelli
committed
May 19, 2022
1 parent
d8ee279
commit 05ccc46
Showing
3 changed files
with
125 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
// the value of the attribute can be a range of values or a random number. | ||
// To use a range, use the format: range: ["value1", "value2", "value3"] | ||
// To use a random value, use the format: minValue: 10, maxValue: 100 | ||
const config = { | ||
// add this randomly generated traits to the attributes | ||
customAttributes: [ | ||
// Uncomment to add a random trait to the attributes | ||
// { | ||
// //the name of the attribute | ||
// trait_type: "Height", | ||
// //a range of values for the attribute | ||
// minValue: 140, | ||
// maxValue: 200, | ||
// }, | ||
// { | ||
// //the name of the attribute | ||
// trait_type: "Weight", | ||
// //a range of values for the attribute | ||
// minValue: 50, | ||
// maxValue: 100, | ||
// }, | ||
// { | ||
// //the name of the attribute | ||
// trait_type: "Music Genre", | ||
// //a range of values for the attribute | ||
// range: ["Pop", "Punk", "Rock", "Metal", "Disco", "Jazz", "Classical", "Hip Hop", "Reggae", "Blues", "Soul", "Electronic"], | ||
// }, | ||
// { | ||
// trait_type: "Another attribute name", | ||
// minValue: 140, | ||
// maxValue: 200, | ||
// }, | ||
], | ||
} | ||
|
||
module.exports = config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters