{"id":27761024,"url":"https://github.com/tsoding/randomart","last_synced_at":"2025-04-29T12:19:07.469Z","repository":{"id":261118918,"uuid":"883324017","full_name":"tsoding/randomart","owner":"tsoding","description":"RandomArt Idea Implementation from the Hash Visualization Paper","archived":false,"fork":false,"pushed_at":"2024-11-16T23:59:49.000Z","size":1881,"stargazers_count":119,"open_issues_count":11,"forks_count":16,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-29T12:18:57.913Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tsoding.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-04T19:06:50.000Z","updated_at":"2025-04-04T02:25:52.000Z","dependencies_parsed_at":"2024-11-04T20:21:22.885Z","dependency_job_id":"db7aeed3-440e-44da-985e-a99f744ba9f4","html_url":"https://github.com/tsoding/randomart","commit_stats":null,"previous_names":["tsoding/randomart"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsoding%2Frandomart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsoding%2Frandomart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsoding%2Frandomart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsoding%2Frandomart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tsoding","download_url":"https://codeload.github.com/tsoding/randomart/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251498963,"owners_count":21598984,"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":[],"created_at":"2025-04-29T12:19:02.151Z","updated_at":"2025-04-29T12:19:07.452Z","avatar_url":"https://github.com/tsoding.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RandomArt\n\nRandomArt idea implementation from http://users.ece.cmu.edu/~adrian/projects/validation/validation.pdf\n\n![thumbnail](thumbnail.png)\n\nAbove image is generated by function:\n\n```\n(add(mult(mult(add(add(add(mult(x, x), mult(x, -0.809645)), mult(add(x, x), add(y, y))), add(mult(mult(0.674010, -0.232019), mult(0.241232, -0.695217)), add(add(x, y), 0.990269))), add(0.090850, add(add(0.164064, x), y))), add(x, y)), mult(x, mult(y, add(y, add(add(mult(x, 0.265273), mult(x, 0.237908)), y))))), mult(add(mult(add(add(mult(mult(0.623806, 0.849694), add(0.416674, 0.995028)), mult(add(0.769761, y), add(0.312180, x))), add(add(add(y, y), mult(y, x)), add(mult(x, -0.266506), add(y, x)))), add(x, mult(add(add(-0.571854, 0.355479), -0.964695), mult(mult(-0.369294, x), mult(x, x))))), add(mult(add(add(x, mult(x, y)), mult(mult(x, y), add(0.518688, x))), add(mult(mult(y, x), x), mult(x, y))), add(mult(add(x, mult(x, y)), x), mult(mult(0.620817, add(0.145679, y)), add(add(x, x), -0.489522))))), y), mult(mult(add(mult(x, add(-0.309250, mult(mult(y, 0.040173), mult(x, x)))), mult(mult(mult(add(x, x), -0.915736), mult(y, 0.117940)), add(x, mult(y, 0.396394)))), y), y))\n```\n\nhttps://github.com/user-attachments/assets/801dd99c-6082-4e83-b7cd-0c666f758a45\n\n*The function that generated above video is to big to fit in this README.*\n\n## Quick Start\n\n### Generate file\n\n```console\n$ cc -o nob nob.c\n$ ./nob run file output.png\n$ feh output.png\n```\n\n### Compile to GLSL shader and display interactively\n\n```console\n$ cc -o nob nob.c\n$ ./nob run gui grammar.bnf\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftsoding%2Frandomart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftsoding%2Frandomart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftsoding%2Frandomart/lists"}