Namespace mem is used for creation of random expression.
Class Value is an abstract parent for the Number, Variable, and Expression classes.
Class Number represents a constant number, Variable is a number which value may be changed from outside.
Expression is linked with two Values and has an operation type.
Static class Pool is used for memory cleaning.

The algorithm of image creation

Initially, the program creates two expressions P and Q
with different depth and X and Y as variables.

Then, it creates expressions H and V using P and Q as variables.

Then, it iterates through image pixels and calculates values of H and V,
and uses it for translation from HSV to RGB color model. The obtained values are used for pixels RGB colors.

License

Copyright AivanF. (c) 2014-2018

This code is provided 'as-is', without any express or implied
warranty. You may not hold the author liable.

Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute it
freely, subject to the following restrictions:

The origin of this code must not be misrepresented. You must not
claim that you wrote the original software. When use the code, you must give appropriate credit,
provide a link to this license, and indicate if changes were made.

Altered source versions must be plainly marked as such, and must not be
misrepresented as being the original software.

This notice may not be removed or altered from any source distribution.