{"id":28917466,"url":"https://github.com/dylanpyle/raphael-sparks","last_synced_at":"2025-10-26T10:44:02.323Z","repository":{"id":2046161,"uuid":"2983620","full_name":"dylanpyle/raphael-sparks","owner":"dylanpyle","description":"A super-simple (2d) particle generator for Raphael","archived":false,"fork":false,"pushed_at":"2011-12-15T04:21:25.000Z","size":164,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-14T15:10:26.269Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"rossdylan/FUSS","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dylanpyle.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":"2011-12-14T22:23:28.000Z","updated_at":"2016-08-27T16:49:26.000Z","dependencies_parsed_at":"2022-08-20T17:20:22.238Z","dependency_job_id":null,"html_url":"https://github.com/dylanpyle/raphael-sparks","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dylanpyle/raphael-sparks","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dylanpyle%2Fraphael-sparks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dylanpyle%2Fraphael-sparks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dylanpyle%2Fraphael-sparks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dylanpyle%2Fraphael-sparks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dylanpyle","download_url":"https://codeload.github.com/dylanpyle/raphael-sparks/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dylanpyle%2Fraphael-sparks/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261217626,"owners_count":23126262,"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":"2025-06-22T00:42:09.518Z","updated_at":"2025-10-26T10:44:02.304Z","avatar_url":"https://github.com/dylanpyle.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# raphael-sparks\nAn über-simple particle generator for [Raphael.js](http://raphaeljs.com). \nVery much a work in progress. Some goals include:\n\n* Becoming a Raphael plugin rather than just a stand-alone script\n* Fixing *all the bugs*. There are some.\n* Transitioning size/opacity as well as just position.\n\nOh, also, it's really tiny. Currently \u003c2kb compressed.\n\n## Usage\n```javascript\n// Initialize\nvar sparks = new Sparks(paper);\n\n// Move particle generator\nsparks.move(200, 200);\n\n// Start making new particles (e.g. on mousedown)\nsparks.start();\n\n// Stop making new particles\nsparks.stop();\n```\n\n## Settings\nSparks has a few settings, such as:\n\n* color: Particle color\n* radius: Particle radius\n* gravity: Particle gravity (around 1 is nice; 0 is no gravity)\n* drag: Acceleration (value from 0 to 1, around 0.9 is nice)\n* lifespan: How many cycles before the particles disappear. Default is 200.\n\nConfigure them as follows:\n\n```javascript\nvar sparks = new Sparks(paper);\nsparks.settings.color = '#eee';\nsparks.settings.radius = 3;\nsparks.move(150, 150);\nsparks.start();\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdylanpyle%2Fraphael-sparks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdylanpyle%2Fraphael-sparks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdylanpyle%2Fraphael-sparks/lists"}