{"id":13547746,"url":"https://github.com/transitive-bullshit/dissolve-generator","last_synced_at":"2026-03-14T16:21:54.043Z","repository":{"id":57213008,"uuid":"76479755","full_name":"transitive-bullshit/dissolve-generator","owner":"transitive-bullshit","description":"Cool 2D dissolve effect generator","archived":false,"fork":false,"pushed_at":"2020-07-11T23:12:56.000Z","size":106,"stargazers_count":14,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-13T18:45:39.017Z","etag":null,"topics":["dissolve","effect","fizzlefade"],"latest_commit_sha":null,"homepage":"https://transitive-bullshit.github.io/dissolve-generator/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/transitive-bullshit.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":"2016-12-14T17:02:12.000Z","updated_at":"2024-10-16T22:19:44.000Z","dependencies_parsed_at":"2022-08-24T21:01:30.186Z","dependency_job_id":null,"html_url":"https://github.com/transitive-bullshit/dissolve-generator","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/transitive-bullshit%2Fdissolve-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/transitive-bullshit%2Fdissolve-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/transitive-bullshit%2Fdissolve-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/transitive-bullshit%2Fdissolve-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/transitive-bullshit","download_url":"https://codeload.github.com/transitive-bullshit/dissolve-generator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252784150,"owners_count":21803613,"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":["dissolve","effect","fizzlefade"],"created_at":"2024-08-01T12:01:00.498Z","updated_at":"2025-10-21T06:32:03.534Z","avatar_url":"https://github.com/transitive-bullshit.png","language":"JavaScript","funding_links":[],"categories":["🚀 A series of exquisite and compact web page cool effects"],"sub_categories":["Other Effect"],"readme":"# Dissolve\n\n\u003e Cool 2D dissolve effect generator ([demo](https://transitive-bullshit.github.io/dissolve-generator/demo))\n\n![Dissolve Demo](https://raw.github.com/transitive-bullshit/dissolve-generator/master/demo/demo.gif)\n\nThis module exposes a generator for generating pseudorandom points over a 2D integer grid.\n\nThe generated points appear random, but they are actually quite deterministic and, in particular, [space-filling](https://www.wikiwand.com/en/Space-filling_curve) in that the samples are guaranteed to *visit* every point in the domain.\n\nThis effect was used in a lot of retro video games to transition the screen between foreground and background images.\n\n## Usage\n\n**Installation:**\n```bash\nnpm install dissolve-generator\n```\n\n**Example usage:**\n\n```javascript\nconst dissolve = require('dissolve-generator')\n\n// generate samples in a grid of width 300, height 400\nconst generator = dissolve(300, 400)\n\n// generate first sample\nconst sample = generator.next()\nconsole.log(sample.value[0], sample.value[1]) // x, y\n\n// generate second sample\ngenerator.next()\nconsole.log(sample.value[0], sample.value[1]) // x, y\n\n// ... will generate a sample for each of the 300 * 400 points in the domain\n```\n\n**API:**\n```javascript\nrequire('dissolve-generator')(Number width, Number height) =\u003e Generator\u003cTuple\u003cNumber x, Number y\u003e\u003e\n```\n\nNote that each sample the returned generator yields is a 2-element array (x,y tuple).\n\n## Demo\n\nThere is a [demo](https://transitive-bullshit.github.io/dissolve-generator/demo) which visualizes the algorithm under the `demo/` folder.\n\n## Citation\n\nThis effect was originally created by Mike Morton, appearing in the first volume of the classic Graphics Gems series.\n\n[A Digital Dissolve Effect by Mike Morton](http://dl.acm.org/citation.cfm?id=90821)\n\"Graphics Gems\", Academic Press, 1990\n\n## License\n\nMIT (c) Travis Fischer 2016\n\nSupport my OSS work by \u003ca href=\"https://twitter.com/transitive_bs\"\u003efollowing me on twitter \u003cimg src=\"https://storage.googleapis.com/saasify-assets/twitter-logo.svg\" alt=\"twitter\" height=\"24px\" align=\"center\"\u003e\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftransitive-bullshit%2Fdissolve-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftransitive-bullshit%2Fdissolve-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftransitive-bullshit%2Fdissolve-generator/lists"}