{"id":18854972,"url":"https://github.com/roman01la/threejs-cljs-playground","last_synced_at":"2025-04-14T10:52:37.827Z","repository":{"id":36436755,"uuid":"40741770","full_name":"roman01la/threejs-cljs-playground","owner":"roman01la","description":"three.js playground in ClojureScript","archived":false,"fork":false,"pushed_at":"2019-01-30T14:17:43.000Z","size":7481,"stargazers_count":45,"open_issues_count":0,"forks_count":1,"subscribers_count":5,"default_branch":"gh-pages","last_synced_at":"2025-04-11T02:59:30.849Z","etag":null,"topics":["clojurescript","playground","threejs","webgl"],"latest_commit_sha":null,"homepage":"http://roman01la.github.io/threejs-cljs-playground/","language":"CSS","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/roman01la.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}},"created_at":"2015-08-15T00:51:39.000Z","updated_at":"2024-11-12T17:56:20.000Z","dependencies_parsed_at":"2022-08-17T23:31:17.969Z","dependency_job_id":null,"html_url":"https://github.com/roman01la/threejs-cljs-playground","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/roman01la%2Fthreejs-cljs-playground","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roman01la%2Fthreejs-cljs-playground/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roman01la%2Fthreejs-cljs-playground/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roman01la%2Fthreejs-cljs-playground/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/roman01la","download_url":"https://codeload.github.com/roman01la/threejs-cljs-playground/tar.gz/refs/heads/gh-pages","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248868812,"owners_count":21174754,"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":["clojurescript","playground","threejs","webgl"],"created_at":"2024-11-08T03:52:24.336Z","updated_at":"2025-04-14T10:52:37.803Z","avatar_url":"https://github.com/roman01la.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# three.js playground in ClojureScript\n\n![demo](screenshot.jpg)\n\nThe playground is running on bootstrapped ClojureScript and stores shared demos on Firebase.\n\nWrite some code, upload textures, OBJ/Collada models (more formats is coming soon) and hit `Alt-Enter` to evaluate and see results immediately.\n\nAfter every evaluation the namespace is populated with the following vars:\n\n- `THREE` — three.js namespace\n- `VIEWPORT` — reference to canvas DOM element\n- `WIDTH` \u0026 `HEIGHT` — viewport dimensions in `px`\n- `MODELS` — JS array with your compiled models\n- `MODELS_DATA` — JS array with parsed models data to be compiled and stored into `MODELS`\n- `TEXTURES` — JS array with compiled textures\n- `TEXTURES_DATA` — JS array with images to be compiled and stored into `TEXTURES`\n- `RENDERER` \u0026 `CAMERA` — assign your renderer and camera instances to these vars to let me handle window resizing for you...\n\n```clojurescript\n(set! RENDERER renderer)\n(set! CAMERA camera)\n```\n\n- `RAF` — ID of the current `requestAnimationFrame` call, this is the important one...\n\nMake sure you are always assigning returning value of `requestAnimationFrame` call to global `RAF` var, like this:\n\n```clojurescript\n(set! RAF (js/requestAnimationFrame render))\n```\n\nThis is required to drop current rendering loop before running a new one after each evaluation.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froman01la%2Fthreejs-cljs-playground","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Froman01la%2Fthreejs-cljs-playground","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froman01la%2Fthreejs-cljs-playground/lists"}