{"id":15885770,"url":"https://github.com/handeyeco/aframe-star-system-component","last_synced_at":"2025-03-28T20:31:39.055Z","repository":{"id":46564445,"uuid":"101701908","full_name":"handeyeco/aframe-star-system-component","owner":"handeyeco","description":"Quick way to add stars to an A-Frame project","archived":false,"fork":false,"pushed_at":"2021-10-05T17:17:49.000Z","size":55,"stargazers_count":16,"open_issues_count":1,"forks_count":4,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-13T10:40:29.622Z","etag":null,"topics":["a-frame","aframe","component","particles","space","star","stars"],"latest_commit_sha":null,"homepage":"https://matthewbryancurtis.github.io/aframe-star-system-component/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/handeyeco.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-08-29T00:53:07.000Z","updated_at":"2025-01-04T02:12:28.000Z","dependencies_parsed_at":"2022-08-28T20:52:17.750Z","dependency_job_id":null,"html_url":"https://github.com/handeyeco/aframe-star-system-component","commit_stats":null,"previous_names":["matthewbryancurtis/aframe-star-system-component"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/handeyeco%2Faframe-star-system-component","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/handeyeco%2Faframe-star-system-component/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/handeyeco%2Faframe-star-system-component/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/handeyeco%2Faframe-star-system-component/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/handeyeco","download_url":"https://codeload.github.com/handeyeco/aframe-star-system-component/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246096948,"owners_count":20723049,"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":["a-frame","aframe","component","particles","space","star","stars"],"created_at":"2024-10-06T05:07:31.404Z","updated_at":"2025-03-28T20:31:34.028Z","avatar_url":"https://github.com/handeyeco.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Quick way to add stars to your A-Frame project\n\n![screenshot](./screenshot.png \"Screenshot\")\n\n* [Basic Usage](#basic-usage)\n* [Demo](#demo)\n* [Properties](#properties)\n* [Random Links](#random-links)\n\n## Basic Usage\n\nGetting started is easy, just import A-Frame and Star-System:\n\n``` html\n\u003c!DOCTYPE html\u003e\n\u003chtml\u003e\n\u003chead\u003e\n    \u003cscript src=\"https://cdnjs.cloudflare.com/ajax/libs/aframe/0.6.1/aframe-master.js\"\u003e\u003c/script\u003e\n    \u003cscript src=\"https://cdn.rawgit.com/matthewbryancurtis/aframe-star-system-component/db4f1030/index.js\"\u003e\u003c/script\u003e\n\u003c/head\u003e\n\u003cbody\u003e\n    \u003ca-scene\u003e\n        \u003ca-sky color=\"black\"\u003e\u003c/a-sky\u003e\n        \u003ca-entity star-system\u003e\u003c/a-entity\u003e\n    \u003c/a-scene\u003e\n\u003c/body\u003e\n\u003c/html\u003e\n```\n\nIf things get bogged down, you may try less particles (stars):\n\n``` html\n\u003ca-entity star-system=\"count: 1000; radius: 250; depth: 0\"\u003e\u003c/a-entity\u003e\n```\n\nBut you also might want to try more:\n\n``` html\n\u003ca-entity star-system=\"count: 100000\"\u003e\u003c/a-entity\u003e\n```\n\nOr offset the sphere of stars:\n\n``` html\n\u003ca-entity position=\"0 0 -250\" star-system\u003e\u003c/a-entity\u003e\n```\n\nIf for some reason square stars bother you, you can use a custom image to replace the stars:\n\n``` html\n\u003ca-entity star-system=\"texture: https://cdn.rawgit.com/matthewbryancurtis/aframe-star-system-component/master/assets/star.svg\"\u003e\u003c/a-entity\u003e\n```\n\n# Demo\n\n[Demo Link](https://matthewbryancurtis.github.io/aframe-star-system-component/)\n\nDemo code:\n\n``` html\n\u003c!DOCTYPE html\u003e\n\u003chtml\u003e\n\u003chead\u003e\n    \u003cscript src=\"https://cdnjs.cloudflare.com/ajax/libs/aframe/0.6.1/aframe-master.js\"\u003e\u003c/script\u003e\n    \u003cscript src=\"https://cdn.rawgit.com/matthewbryancurtis/aframe-star-system-component/db4f1030/index.js\"\u003e\u003c/script\u003e\n\u003c/head\u003e\n\u003cbody\u003e\n    \u003ca-scene\u003e\n        \u003ca-sky color=\"black\"\u003e\u003c/a-sky\u003e\n        \u003ca-entity star-system\u003e\u003c/a-entity\u003e\n    \u003c/a-scene\u003e\n\u003c/body\u003e\n\u003c/html\u003e\n```\n\n## Properties\n\nThe way this works is it creates a bunch of particles (stars) in THREE. The particles are randomly placed between two spheres: sphere of radius 'radius' and sphere of radius 'radius + depth'. You can also load a custom sprite to replace the squares that THREE.PointsMaterial() makes.\n\n| Property    | Type   | Default | Description                                         |\n|-------------|--------|---------|-----------------------------------------------------|\n| color       | String | '#FFF'  | Color of the star particles                         |\n| radius      | Number | 300     | Distance from center of sphere to inner star sphere |\n| depth       | Number | 300     | Distance between inner sphere and outer sphere      |\n| size        | Number | 1       | Size of each individual star                        |\n| count       | Number | 10000   | Number of total stars created                       |\n| texture     | Asset  | ''      | Sprite used for individual stars (ex: PNG image)    |\n\n## Random Links\n\n* [Star-System on NPM](https://www.npmjs.com/package/aframe-star-system-component)\n* [I'm looking for a job](http://matthewbryancurtis.com/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhandeyeco%2Faframe-star-system-component","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhandeyeco%2Faframe-star-system-component","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhandeyeco%2Faframe-star-system-component/lists"}