A simple random abstract image generator on Node.js, built with the Jimp library.
Different mathematical functions that control the color channels (called "filters" from now on) are applied on top of each other to create chaotic patterns that sometimes result in interesting images.
Node v17 is recommended.
git clone git@github.com:Bielwenass/laiza-image-gen.git
cd laiza-image-gen
yarn
node src/main.js
Can be changed in settings.js
.
resolution
: Width and height of the output pics (in pixels).
iterationsCount
: Number of times filters will be applied. Lower values will make the result simplistic, and higher values will make it more complex (or, potentially, messy).
imagesCount
: Number of images to generate.
saveAllIterations
: Save all iterations or only the final one. The progress pics sometimes look better than the final output, especially with high iterationsCount
. Useful for understanding how different filters affect the end result. Off by default.
enableRandomNames
: Assign random filenames on save. Useful if you wish to generate multiple batches of images without new ones overwriting the old ones.
saturationPredefined
: Images are desaturated by a random amount by default - colors are usually too intense, so this was introduced for more variety. However, if this value is set, it will always be used to control the saturation, with 1 meaning full saturation, 0 meaning black & white images, and everything inbetween.
genMode
: Possible values are normal
, random
, and test
.
normal
uses filters set to true infiltersToUse
random
uses randomly selected filters for each image (50% chance for each filter)test
only uses the test filter
filtersToUse
: Controls which filters are enabled in the normal generation mode.
Samples of all implemented filters. Shown are 1, 2 and 3 iterations of a given filter applied to a blank image.
License: MIT