# Digital artist

At higher school I was interested in procedural graphics — creating of pictures with algorithms and code only. As a result of experiments, I developed an interesting artist-abstractionist program :) Here there are presented the most attractive its works and some details of its structure.   Pictures are mad of pixels, small points which has color, located at specific X and Y, and has same color. As everything in a computer, color is presented using numbers, and thus it can be calculated. To make a new picture, my program firstly creates a random mathematical formula, which express relation of color and position. Then it just calculates color of each point! Different ratios and functions are used there, and completely different results are generated. Formulas look like that:
(0.52/((cos(cos(((0.47/Y)+(Z-Z))+((0.48/Z)+(Y/0.15)))+((cos(Z+X)*(Z/X))-((Z+0.52)/(0.27*Z))))+((cos((0.78/Z)+cos(Y+0.45))-((Y*0.45)+(0.60*0.63)))-sin(cos((0.71*Z)+sin(0.57+0.90))+(cos(Z+0.68)-(0.30-0.39)))))-(sin(((sin(Y+X)/cos(Z+0.45))+(cos(Z+Z)+(0.22/0.06)))+((cos(X+Z)*(0.20-Y))-((X/0.82)*(0.22+Z))))*cos(sin(sin((0.84*Z)+(X-0.85))+(cos(X+Y)+(Z-Y)))+((cos(0.25+Z)*(0.57+Z))+sin((X*Z)+sin(X+Y)))))))+(0.40-0.14))+((0.60-((cos(cos(((0.47/Y)+(Z-Z))+((0.48/Z)+(Y/0.15)))+((cos(Z+X)*(Z/X))-((Z+0.52)/(0.27*Z))))...

It it is interesting, the program is written in C++ programming language with simple library for writing of PNG-files. Also, it has a few classes (number, variable, expression) and a recursive function, that ganerates random formulas. Testing depth is about 8 levels, thereby we get various images and patterns.   Large pictures — prepared wallpapers:    Here is the source code on GitHub.

I hope, you liked works of virtual artist. If so, like the page and share it with friend :) All the best!