{"id":15705292,"url":"https://github.com/brahmlower/test-galaxy-map","last_synced_at":"2025-03-30T15:25:53.047Z","repository":{"id":86081695,"uuid":"296566594","full_name":"brahmlower/test-galaxy-map","owner":"brahmlower","description":"A naive method of generating solar system coordinates in a 2D spiral galaxy, following this research: https://arxiv.org/pdf/0908.0892.pdf","archived":false,"fork":false,"pushed_at":"2021-09-09T09:26:00.000Z","size":20,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-05T17:12:14.951Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/brahmlower.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-09-18T08:50:11.000Z","updated_at":"2022-09-22T09:52:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"9f10704f-0ba6-4893-95fe-654ec0a9dbbe","html_url":"https://github.com/brahmlower/test-galaxy-map","commit_stats":{"total_commits":11,"total_committers":1,"mean_commits":11.0,"dds":0.0,"last_synced_commit":"81a6ef966fa96c36d7ac93bc185b427be7c9aa2e"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brahmlower%2Ftest-galaxy-map","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brahmlower%2Ftest-galaxy-map/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brahmlower%2Ftest-galaxy-map/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brahmlower%2Ftest-galaxy-map/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brahmlower","download_url":"https://codeload.github.com/brahmlower/test-galaxy-map/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246336544,"owners_count":20761068,"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":"2024-10-03T20:15:21.011Z","updated_at":"2025-03-30T15:25:53.030Z","avatar_url":"https://github.com/brahmlower.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Test Galaxy Map\n\nThis is a super simple project for generating galaxy maps suitable for a 2D game. No efforts have been made to make the generation process efficient, and tweaking generation settings must be done by manually editing constants in the js file.\n\n### Configurables\n\n#### Canvas Configs\n* `width`: width of the canvas. Needs to be kept in sync with element width declared in the html\n* `height`: height of the canvas. Needs to be kept in sync with element height declared in the html\n\n#### Rendering Configs\n* `RENDER_AXIS`: enable/disable rendering of the x and y axis\n* `RENDER_ARMS`: enable/disable rendering of the galaxy arm guidelines\n* `RENDER_CLUSTERS`: enable/disable rendering star cluster borders\n* `RENDER_STARS`: enable/disable rendering of all stars\n* `RENDER_STARS_ARM`: enable/disable rendering of filler stars in the arms (does not effect cluster stars)\n* `RENDER_STARS_GENERAL`: enable/disable rendering of the stars between the galaxy arms\n\n#### Star Density Configs\n\nDensity values here represent N/1000 stars/pixel for a given region. Finding a comfortable balance here is very much a manual effort.\n\n* `MIN_STAR_DISTANCE`: Minimum number of pixels between any two stars\n* `STAR_DENSITY_GENERAL`: Star density for stars between arms of the galaxy\n* `STAR_DENSITY_ARM`: Star dentity for stars in the galaxy arms, but not in the star clusters\n* `STAR_DENSITY_CLUSTER_MIN`: Minimum boundry for star cluster density\n* `STAR_DENSITY_CLUSTER_MAX`: Maximum boundry for star cluster density\n\n### Images\n\nThe following are a couple examples of the resulting maps.\n\nThis first image is with the default settings\n![](https://i.imgur.com/x4KtAum.png)\n\nThis second image is with cluster density significantly increased\n![](https://i.imgur.com/Vav7PI6.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrahmlower%2Ftest-galaxy-map","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrahmlower%2Ftest-galaxy-map","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrahmlower%2Ftest-galaxy-map/lists"}