NFT Collections : Mathematical Generated Images
2020 - 2021 Web3 boom - So I tried creating NFT with code and some mathematical functions.
2020-2021 was the year of Crypto, Web3, and Metaverse. I was fascinated by the idea of how programmers are creating this beautiful art with maths and codes in Python, Java, Processing, Javascript, Haskell, Golang, and Rust, I have tried every language and each one has its pros and cons, like a limitation on rendering libraries, some needs web3gl, and requirements need full-fledged GPU to render high res images with high computing rendering and all. Once I rendered an 8-hour image, with my Nvidia 940MX and i7 core, it was just 120 lines of codes, but the maths inside them were heavy, some signals processing concepts like signal-to-noise ratio and some image processing concepts are all required to process these images.
I use Processing IDE to code and “Processing Integrated Python” and pure processing functions, it’s much faster than Java and others, but Go and rust are faster but code complexity is more.
These are some of my published NFT collections, just wanted to know how people are paying millions of dollars for these images converted to NFT, So I tried coding and publishing them, not sold even one, but the processing of creating these amazing art, it was super fun and every time I change parameter like noise and grain for this color will be this and that every single time I was amazed by generated images.
Collection Link - https://opensea.io/collection/generativearts
Mathematical Attractors
Strange Attractors are mathematical systems that tend to evolve over time. Attractors are represented by coordinates in space, each coordinate dependent upon the previous coordinate, and the change between the two coordinates is based upon one mathematical equation per dimension.
Given their properties, Strange Attractors can be quite artistic in nature. For instance, the Lorenz Attractor holds its own beauty of symmetry. The De Jong attractors are another system that, when visualized in two or three dimensions can be incredibly beautiful. The equations underlying the De Jong attractor follow
:
The De Jong Attractor is defined by the following equations:
xt+1 = sin(a * yt) - cos(b * xt)
yt+1 = sin(c * xt) - cos(d * yt)
where, a
, b
, c
and d
are the initial conditions.
float x=0;
float y=0;
float a=-1.24;
float b=-1.25;
float c=-1.81;
float d=-1.9;
float sc=200;
void setup() {
size(840, 840);
background(0);
}
void draw() {
translate(width/2, height/2);
stroke(255,20);
for (int i=0; i<1000; i++)
cal();
}
void cal() {
float nx= sin(a * y) - cos(b * x); //De Jong attractors
float ny= sin(c * x) - cos(d * y);
point(sc*x, sc*y);
x=nx;
y=ny;
}
Stay tuned will post more generative Art and comic strips.