{"id":15057207,"url":"https://github.com/atelierarith/cxxrandomlogo","last_synced_at":"2026-02-12T21:03:42.233Z","repository":{"id":240390727,"uuid":"802118728","full_name":"AtelierArith/CxxRandomLogo","owner":"AtelierArith","description":"Port AtelierArith/RandomLogos.jl written in Julia to C++","archived":false,"fork":false,"pushed_at":"2024-08-23T17:03:05.000Z","size":44,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-14T10:14:24.138Z","etag":null,"topics":["cpp","cxx","cxxwrap","fractals","julia"],"latest_commit_sha":null,"homepage":"","language":"Julia","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/AtelierArith.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},"funding":{"github":"terasakisatoshi"}},"created_at":"2024-05-17T14:58:46.000Z","updated_at":"2024-10-01T06:21:34.000Z","dependencies_parsed_at":null,"dependency_job_id":"74e25972-1fe4-48d0-a46b-d5207f9d176b","html_url":"https://github.com/AtelierArith/CxxRandomLogo","commit_stats":null,"previous_names":["atelierarith/cxxrandomlogo"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AtelierArith%2FCxxRandomLogo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AtelierArith%2FCxxRandomLogo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AtelierArith%2FCxxRandomLogo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AtelierArith%2FCxxRandomLogo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AtelierArith","download_url":"https://codeload.github.com/AtelierArith/CxxRandomLogo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243558478,"owners_count":20310574,"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":["cpp","cxx","cxxwrap","fractals","julia"],"created_at":"2024-09-24T22:03:53.908Z","updated_at":"2025-09-24T16:41:26.776Z","avatar_url":"https://github.com/AtelierArith.png","language":"Julia","funding_links":["https://github.com/sponsors/terasakisatoshi"],"categories":[],"sub_categories":[],"readme":"# CxxRandomLogo\n\nPort [AtelierArith/RandomLogos.jl](https://github.com/AtelierArith/RandomLogos.jl) written in Julia to C++.\n\n## Requirements\n\n- CMake\n- Julia\n  - See https://github.com/JuliaLang/juliaup to install Julia\n\n# Setup\n\n```console\n$ git clone https://github.com/AtelierArith/CxxRandomLogo.git\n$ cd CxxRandomLogo\n$ make\n```\n\n# How to use\n\n## C++ Application\n\nOur C++ implementation provides point generation features that can be accessed from `generate_points`.\n\n```cpp\n// main.cpp\n#include \u003ciostream\u003e\n#include \u003crandom\u003e\n#include \"point_generation.hpp\"\n\nint main() {\n  // 100000 points\n  auto xy = generate_points();\n  auto xs = xy.first; // x coordinates\n  auto ys = xy.second; // y coordinates\n  // header\n  std::cout \u003c\u003c \"x,y\" \u003c\u003c std::endl;\n  // contents\n  for (int i = 0; i \u003c xs.size(); i++) {\n    auto x = xs[i];\n    auto y = ys[i];\n    std::cout \u003c\u003c x \u003c\u003c \",\" \u003c\u003c y \u003c\u003c std::endl;\n  }\n  return 0;\n};\n```\n\nTo build our C++ code, just run `make`.\n\n```console\n$ make\n```\n\nWe'll see that `./build/bin` is generated and the executable file `CxxRandomLogo` corresponds to `main.cpp` is generated. To store results as a CSV file, just run the following command:\n\n```console\n$ ./build/bin/CxxRandomLogo \u003e out.csv\n$ head out.csv\nx,y\n0,0\n-0.380685,0.692171\n-1.09698,0.779349\n-1.61693,0.45568\n0.489574,-0.189705\n-0.893767,-0.739919\n-0.0128572,-1.12225\n-0.594527,-1.4382\n-0.226511,-1.66354\n```\n\nWe can visalize the result using Julia script named `vis.jl`.\n\n```console\n$ julia vis.jl # out.png\n```\n\nThis generates `out.png`\n\n## Julia Interface\n\n```julia\n$ julia\n               _\n   _       _ _(_)_     |  Documentation: https://docs.julialang.org\n  (_)     | (_) (_)    |\n   _ _   _| |_  __ _   |  Type \"?\" for help, \"]?\" for Pkg help.\n  | | | | | | |/ _` |  |\n  | | |_| | | | (_| |  |  Version 1.10.3 (2024-04-30)\n _/ |\\__'_|_|_|\\__'_|  |  Official https://julialang.org/ release\n|__/                   |\n\n\njulia\u003e using ImageInTerminal\njulia\u003e using CxxRandomLogo: draw\njulia\u003e [draw() draw() draw(); draw() draw() draw()]\n```\n\n\u003cimg width=\"1033\" alt=\"image\" src=\"https://github.com/AtelierArith/CxxRandomLogo/assets/16760547/f9074553-dd6a-413d-8642-bbb38fe6da49\"\u003e\n\n## Pluto demo\n\n```julia\njulia\u003e using Pluto; Pluto.run()\n```\n\nThen open playground/pluto/notebook.jl from Pluto Web UI\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatelierarith%2Fcxxrandomlogo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fatelierarith%2Fcxxrandomlogo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatelierarith%2Fcxxrandomlogo/lists"}