{"id":22010102,"url":"https://github.com/beldar/sequencer","last_synced_at":"2026-04-19T19:31:38.196Z","repository":{"id":16396014,"uuid":"19146812","full_name":"beldar/sequencer","owner":"beldar","description":"Image Sequencer for complex animations","archived":false,"fork":false,"pushed_at":"2015-04-13T11:05:42.000Z","size":12508,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-01-24T05:28:48.006Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/beldar.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":"2014-04-25T13:27:15.000Z","updated_at":"2016-10-09T20:23:16.000Z","dependencies_parsed_at":"2022-08-30T20:01:00.199Z","dependency_job_id":null,"html_url":"https://github.com/beldar/sequencer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/beldar/sequencer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beldar%2Fsequencer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beldar%2Fsequencer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beldar%2Fsequencer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beldar%2Fsequencer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/beldar","download_url":"https://codeload.github.com/beldar/sequencer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beldar%2Fsequencer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32020415,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T20:23:30.271Z","status":"online","status_checked_at":"2026-04-19T02:00:07.110Z","response_time":55,"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":"2024-11-30T02:12:01.337Z","updated_at":"2026-04-19T19:31:38.178Z","avatar_url":"https://github.com/beldar.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Image Sequencer\n\nImage sequence player, by transforming images encoded in base64 into js files and plotting them into a canvas element.\n\n## Summary\n\nThe code can be found in `sequencer.js` or `sequencer.min.js`.\n\nThe idea is to use something like the `/compiler.php` to encode a sequence of images into base64 strings and\nput them into an array inside a js file, that way you only load one file per sequence instead of all the images one by one.\n\nObviously this technique is required for a large sequence of images, when putting them in a sprite is not practical.\n\nIt doesn't have any other library dependecies.\n\nCheckout the demo [here](http://www.martiplanellas.info/sequencer/)\n\n## Install\n\n### Using bower\n\n    bower install sequencerjs --save\n    \n### Using script\n\n    \u003cscript type=\"text/javascript\" src=\"sequencer/sequencer.min.js\"\u003e\u003c/script\u003e\n\n## Usage\n\n### Using compiler.php\n\nThis little php script found in the root of this project, is a helper that will take a folder of png images, and output a js file containing an array with all the base64 encode of those images.\n\nThe usage is as follows:\n\n    php compiler.php \"/path/to/pngs\" \"file_name.js\"\n\n\n### Using the library\n\nCreate new sequencer like this\n\n`var s = new Sequencer();`\n\nYou can pass the following options (default values shown):\n\n    var s = new Sequencer({\n        fps : 50,\n        canvas : document.getElementById('canvas')\n    });\n\nThen you have to load a sequence and give it a name:\n\n    s.loadSequence('breathing', 'scripts/breath_sequence.js');\n    \nAnd you can listen to the loaded event, and then you can play it as a loop (or not):\n\n    s.canvas.addEventListener('loaded', function(e){\n        console.log('Sequence Loaded: '+e.detail.sequence);\n        if (e.detail.sequence === 'breathing') {\n            console.log('Playing breathing, loop: true');\n            s.play('breathing', true);\n        } \n    });\n\nYou can also listen to the 'stopped' event, which fires when the sequence is done or if its\na loop every time it repeats a loop \n\nHere's a more complete example (that you can find in `/app/scripts/main.js`):\n\n    var s = new Sequencer();\n    s.loadSequence('breathing', 'scripts/breath_sequence.js');\n    s.canvas.addEventListener('loaded', function(e){\n        console.log('Sequence Loaded: '+e.detail.sequence);\n        if (e.detail.sequence === 'breathing') {\n            console.log('Playing breathing, loop: true');\n            s.play('breathing', true);\n        } \n    });\n    s.loadSequence('negative', 'scripts/negative_sequence.js');\n    s.loadSequence('positive', 'scripts/positive_sequence.js');\n    s.canvas.addEventListener('stopped', function(e){\n        if (e.detail.sequence === 'breathing' \u0026\u0026 e.detail.loops === 2) {\n            console.log('Breathing stopped after playing 2 loops, playing negative, loop: false');\n            s.play('negative', false);\n        }\n        if (e.detail.sequence === 'negative') {\n            console.log('Negative stopped, playing positive, loop: false');\n            s.play('positive', false);\n        }\n        if (e.detail.sequence === 'positive') {\n            console.log('Positive stopped, playing breathing, loop: false');\n            s.play('breathing', true);\n        }\n    });\n\n## Browser support\n\nIt uses canvas to render the images, so all modern browser work.\n\nSince IE8 doesn't support canvas, IE support is \u003eIE9.\n\n\n## Installation of the Demo\n\nDependencies\n------------\n\nYou have to have installed [bower](http://bower.io/), and [compass](http://compass-style.org/install/). To install the first two you'll need [node](http://nodejs.org/) too.\n\nInstall\n-------\n\nOnce you have all those and cloned the repo, go to the root of the project and run:\n\n    bower install\n    \nThat will download all the js and css dependencies of the project.\n\nThen run:\n\n    npm install\n    \nThis will download all the node dependencies (including grunt)\n\nFinally you can launch the demo running:\n\n    grunt serve\n    \nYou can build the project ready for production like this:\n\n    grunt build\n    \nThat will leave everything ready on the `/dist` folder","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeldar%2Fsequencer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbeldar%2Fsequencer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeldar%2Fsequencer/lists"}