{"id":15621778,"url":"https://github.com/pirtleshell/graphics","last_synced_at":"2025-03-29T15:47:20.778Z","repository":{"id":54120219,"uuid":"186075545","full_name":"pirtleshell/graphics","owner":"pirtleshell","description":"playing around with some web graphics","archived":false,"fork":false,"pushed_at":"2021-03-09T03:32:56.000Z","size":746,"stargazers_count":1,"open_issues_count":3,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-04T16:49:49.688Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://robert.pirtle.xyz/graphics-demo/","language":"JavaScript","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/pirtleshell.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":"2019-05-11T01:49:40.000Z","updated_at":"2024-07-26T21:21:16.000Z","dependencies_parsed_at":"2022-08-13T07:00:41.005Z","dependency_job_id":null,"html_url":"https://github.com/pirtleshell/graphics","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/pirtleshell%2Fgraphics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pirtleshell%2Fgraphics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pirtleshell%2Fgraphics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pirtleshell%2Fgraphics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pirtleshell","download_url":"https://codeload.github.com/pirtleshell/graphics/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246207491,"owners_count":20740723,"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-03T09:51:49.332Z","updated_at":"2025-03-29T15:47:20.757Z","avatar_url":"https://github.com/pirtleshell.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# graphics\n\n![look at that dinosaur!](screenshot.png)\n\nSee a live demo [here](https://robert.pirtle.xyz/graphics-demo/).\n\nI made this mostly just to play with 3D graphics math. Why? Because this is the most hands-on linear algebra can be! A [custom webpack loader](polyLoader.js) loads [files of vertices and faces](src/data) then renders the polygons in 3D space.\n\nIt is all rendered in real time _on your CPU_! There's a branch I started on that uses fancy webGL shaders to render on your GPU, but I stopped work on it. Maybe someday?\n\nI implemented a rudimentary light model to shade the polygons. It only draws polygons you can see (thanks normal vectors and dot products) and uses z-index sorting to draw them in the correct order.\n\nThe concepts (along with the stegosaurus polygons) were things I learned in a C++ advanced graphics course I took in college.\n\n# license\n\n[MIT](https://choosealicense.com/licenses/mit/) © 2020 Robert Pirtle\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpirtleshell%2Fgraphics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpirtleshell%2Fgraphics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpirtleshell%2Fgraphics/lists"}