You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+34-12Lines changed: 34 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -107,7 +107,11 @@ You can mix up the `layerConfigurations` order on how the images are saved by se
107
107
108
108
If you want to have logs to debug and see what is happening when you generate images you can set the variable `debugLogs` in the `config.js` file to true. It is false by default, so you will only see general logs.
109
109
110
-
If you want to play around with different blending modes, you can add a `blend: MODE.colorBurn` field to the layersOrder object. If you need a layers to have a different opacity then you can add the `opacity: 0.7` field to the layersOrder object as well. Both the `blend: MODE.colorBurn` and `opacity: 0.7` can be addes on the same layer if you want to.
110
+
If you want to play around with different blending modes, you can add a `blend: MODE.colorBurn` field to the layersOrder `options` object.
111
+
112
+
If you need a layers to have a different opacity then you can add the `opacity: 0.7` field to the layersOrder `options` object as well.
113
+
114
+
To use a different metadata attribute name you can add the `displayName: "Awesome Eye Color"` to the `options` object. All options are optional and can be addes on the same layer if you want to.
111
115
112
116
Here is an example on how you can play around with both filter fields:
You might possibly want to update the baseUri after you have ran your collection. To update the baseUri simply run:
230
+
You might possibly want to update the baseUri and description after you have ran your collection. To update the baseUri and description simply run:
220
231
221
232
```sh
222
-
node utils/updateBaseUri.js
233
+
npm run update_info
223
234
```
224
235
225
236
### Generate a preview image
226
237
227
238
Create a preview image collage of your collection, run:
228
239
229
240
```sh
230
-
node utils/createPreviewCollage.js
241
+
npm run preview
231
242
```
232
243
233
-
### Re-generate the \_metadata.json file
244
+
### Generate pixelated images from collection
234
245
235
-
This util will only work if you have all the individual json files and want to re-generate the \_metadata.json file if you lost it, run:
246
+
In order to convert images into pixelated images you would need a list of images that you want to convert. So run the generator first.
247
+
248
+
Then simply run this command:
236
249
237
250
```sh
238
-
node utils/regenerateMetadata.js
251
+
npm run pixelate
252
+
```
253
+
254
+
All your images will be outputted in the `/build/pixel_images` directory.
255
+
If you want to change the ratio of the pixelation then you can update the ratio property on the `pixelFormat` object in the `src/config.js` file. The lower the number on the left, the more pixelated the image will be.
256
+
257
+
```js
258
+
constpixelFormat= {
259
+
ratio:5/128,
260
+
};
239
261
```
240
262
241
263
### Printing rarity data (Experimental feature)
242
264
243
265
To see the percentages of each attribute across your collection, run:
0 commit comments