{"id":18926428,"url":"https://github.com/aivanf/virtual-artist-abstractionist","last_synced_at":"2026-03-15T03:30:15.561Z","repository":{"id":144522684,"uuid":"119173706","full_name":"AivanF/virtual-artist-abstractionist","owner":"AivanF","description":"C++ program that generates random paintings in PNG","archived":false,"fork":false,"pushed_at":"2023-09-24T08:13:38.000Z","size":93,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-31T18:37:11.688Z","etag":null,"topics":["c-plus-plus","png","procedural-drawing","random-generation"],"latest_commit_sha":null,"homepage":"http://www.aivanf.com/virtual-artist","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AivanF.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2018-01-27T14:57:36.000Z","updated_at":"2023-09-24T08:13:44.000Z","dependencies_parsed_at":"2023-09-24T10:19:32.925Z","dependency_job_id":null,"html_url":"https://github.com/AivanF/virtual-artist-abstractionist","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AivanF%2Fvirtual-artist-abstractionist","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AivanF%2Fvirtual-artist-abstractionist/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AivanF%2Fvirtual-artist-abstractionist/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AivanF%2Fvirtual-artist-abstractionist/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AivanF","download_url":"https://codeload.github.com/AivanF/virtual-artist-abstractionist/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239922172,"owners_count":19718910,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["c-plus-plus","png","procedural-drawing","random-generation"],"created_at":"2024-11-08T11:16:15.323Z","updated_at":"2026-03-15T03:30:15.503Z","avatar_url":"https://github.com/AivanF.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Virtual artist abstractionist\n\nThis is a console C++ program that generates random abstract paintings in PNG format that I created in 2013.\nHere is the [main article with lots of generated pictures](https://www.aivanf.com/en/virtual-artist).\n\n![Difital artists screenshot 1](http://www.aivanf.com/static/abst/p02.png)\n\n### Project files\n\n- `mathem.h` – some helpful functions.\n\n- `lodepng.h` / `lodepng.cpp` – PNG library created by [Lode Vandevenne](http://lodev.org/lodepng/).\n\n- `islepng.h` –  **isle** namespace and **Picture** class for images manipulations.\n\n- `mem.h` / `mem.cpp` – **mem** namespace, classes **Value**, **Number**, **Variable**, **Expression**, **Pool**,\nand functions for deep expressions creation.\n\n  Namespace **mem** is used for creation of random expression.\nClass **Value** is an abstract parent for the **Number**, **Variable**, and **Expression** classes.\nClass **Number** represents a constant number, **Variable** is a number which value may be changed from outside.\n**Expression** is linked with two **Value**s and has an operation type.\nStatic class **Pool** is used for memory cleaning.\n\n  The function `Value* SetDeepValueVars(int, Value*, Value*)` recursively creates random expressions\n  with given values at the bottom level.\n\n- `main.cpp` – entry point, input handling, and generation controlling.\n\n### The algorithm of image creation\n\n1. Initially, the program creates two expressions **P** and **Q**\nwith different depth and **X** and **Y** as variables.\n\n2. Then, it creates expressions **H** and **V** using **P** and **Q** as variables.\n\n3. Then, it iterates through image pixels and calculates values of **H** and **V**,\nand uses it for translation from [HSV](https://en.wikipedia.org/wiki/HSL_and_HSV) to [RGB](https://en.wikipedia.org/wiki/RGB_color_model) color model. The obtained values are used for pixels RGB colors.\n\n### License\n\nCopyright AivanF. (c) 2014-2018\n\nThis code is provided 'as-is', without any express or implied\nwarranty. You may not hold the author liable.\n\nPermission is granted to anyone to use this software for any purpose,\nincluding commercial applications, and to alter it and redistribute it\nfreely, subject to the following restrictions:\n\n1. The origin of this code must not be misrepresented. You must not\nclaim that you wrote the original software. When use the code, you must give appropriate credit,\nprovide a link to this license, and indicate if changes were made.\n\n2. Altered source versions must be plainly marked as such, and must not be\nmisrepresented as being the original software.\n\n3. This notice may not be removed or altered from any source distribution.\n    \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faivanf%2Fvirtual-artist-abstractionist","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faivanf%2Fvirtual-artist-abstractionist","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faivanf%2Fvirtual-artist-abstractionist/lists"}