{"id":25969406,"url":"https://github.com/thesephi/genarts","last_synced_at":"2026-05-29T21:31:02.098Z","repository":{"id":26975431,"uuid":"30439010","full_name":"Thesephi/genarts","owner":"Thesephi","description":"Simple Generative Arts with JavaScript","archived":false,"fork":false,"pushed_at":"2017-08-12T20:52:13.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-22T08:49:49.941Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/Thesephi.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":"2015-02-07T00:12:24.000Z","updated_at":"2017-08-12T20:52:14.000Z","dependencies_parsed_at":"2022-07-24T13:01:57.020Z","dependency_job_id":null,"html_url":"https://github.com/Thesephi/genarts","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Thesephi/genarts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thesephi%2Fgenarts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thesephi%2Fgenarts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thesephi%2Fgenarts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thesephi%2Fgenarts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Thesephi","download_url":"https://codeload.github.com/Thesephi/genarts/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thesephi%2Fgenarts/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33672124,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-29T02:00:06.066Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":"2025-03-04T22:48:06.024Z","updated_at":"2026-05-29T21:31:02.077Z","avatar_url":"https://github.com/Thesephi.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# genarts\nSimple Generative Arts with JavaScript ([live example](https://kha.ngdinh.com/genarts/))\n\n![Genarts Demo Screenshot](https://kha.ngdinh.com/genarts/screenshot.png)\n\n### To build the library:\n```\nnpm install\ngrunt\n```\n\n### Usage:\nPlease view the `examples/index.html` file for more details on setting up the canvas and handling different browser sizes. I personally prefer a fullscreen experience, but you might want to set things up the way you want. The Genarts library itself is used as shown below:\n```\nvar genarts = new GenArts(ctx); // ctx is the HTML5 canvas context\n\n/*\n * basic mode of the show: 2 beams bouncing off the canvas borders until timeout\n */\ngenarts.basic(\n\twindow.innerWidth/2,  // x coordinate of the point where you want the beams to start from\n\twindow.innerHeight/2, // y coordinate of the point where you want the beams to start from\n\tMath.random()*20-10,  // original x velocity of the beam\n\tMath.random()*16-8    // original y velocity of the beam\n);\n```\n\nand then you can press Fullscreen and enjoy a modest screen-saver :)\n\n### Miscellaneous:\n- Press *Spacebar* to pause / unpause the engine.\n- By default, after *330 seconds* the engine will halt. You can hit *Spacebar* twice to make it resume.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthesephi%2Fgenarts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthesephi%2Fgenarts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthesephi%2Fgenarts/lists"}