{"id":21662810,"url":"https://github.com/gftruj/aframe-lsd-component","last_synced_at":"2026-01-04T14:06:11.588Z","repository":{"id":57174210,"uuid":"94991762","full_name":"gftruj/aframe-lsd-component","owner":"gftruj","description":"Color changing component, matching the camera rotation with the hsl color system","archived":false,"fork":false,"pushed_at":"2019-07-11T05:47:44.000Z","size":10,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-09-24T09:13:33.183Z","etag":null,"topics":["aframe","aframevr","hsl","hsl-color","webvr"],"latest_commit_sha":null,"homepage":"","language":"HTML","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/gftruj.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}},"created_at":"2017-06-21T10:20:23.000Z","updated_at":"2024-08-09T23:07:17.000Z","dependencies_parsed_at":"2022-09-02T12:11:15.410Z","dependency_job_id":null,"html_url":"https://github.com/gftruj/aframe-lsd-component","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gftruj%2Faframe-lsd-component","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gftruj%2Faframe-lsd-component/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gftruj%2Faframe-lsd-component/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gftruj%2Faframe-lsd-component/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gftruj","download_url":"https://codeload.github.com/gftruj/aframe-lsd-component/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244560373,"owners_count":20472219,"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":["aframe","aframevr","hsl","hsl-color","webvr"],"created_at":"2024-11-25T10:18:12.121Z","updated_at":"2026-01-04T14:06:11.511Z","avatar_url":"https://github.com/gftruj.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# aframe-lsd-component\n\nHue Saturation Lightness meets aframe !\nLook around and see how the color is changing, according to the direction You're looking at.\n\n## Description\n\nThe component changes an entity materials color, while moving the camera ( or any oher object )\nSimply put it in a entity : `\u003ca-sky lsd-component\u003e`\n\nThe color changes according to the Hue Saturation Lighness system, while the horizontal rotation correspond to the hue angle, and the vertical rotation correspond to the saturation value.\n\n\n### Installation\n\n#### CDN script to include:\u003cbr\u003e\n`\u003cscript src=\"https://cdn.rawgit.com/gftruj/aframe-lsd-component/c1782554/dist/lsd-component.js\"\u003e\u003c/script\u003e`\n#### npm \n`npm install aframe-lsd-component`\n\n### Attributes\n\n| Property             | Default      | Description                                         |\n|----------------------|--------------|-----------------------------------------------------|\n| baseHueAngle         |      0       | The Hue angle when initialized                      |\n| baseSaturation       |      50      | The saturation value, when the camera rotation.z is 0                 |\n| lightness            |      50      | The 'l' from the hsl color system, it's constant.      |\n| saturationOffsetMin  |      30      | The minimal saturation value when looking down.                             |\n| saturationOffsetMax  |      120     | The maximum saturation value when looking up.         |\n| activeCamera         |  'a-camera'  | This selector takes the object to which the component should be corresponding  |\n| performance          |      true    | Change the color either on tick (false), or on component change(true) |\n\n### Example:\nhttps://aframe-lsd.glitch.me/\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgftruj%2Faframe-lsd-component","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgftruj%2Faframe-lsd-component","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgftruj%2Faframe-lsd-component/lists"}