{"id":15380867,"url":"https://github.com/francoisschwarzentruber/simpleanimation","last_synced_at":"2026-05-13T00:02:48.790Z","repository":{"id":226641242,"uuid":"769261442","full_name":"francoisschwarzentruber/simpleanimation","owner":"francoisschwarzentruber","description":null,"archived":false,"fork":false,"pushed_at":"2025-11-01T09:11:32.000Z","size":42,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-01T11:16:49.744Z","etag":null,"topics":["animation","simple-app"],"latest_commit_sha":null,"homepage":"https://francoisschwarzentruber.github.io/simpleanimation/","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/francoisschwarzentruber.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-03-08T17:15:47.000Z","updated_at":"2025-10-30T09:15:23.000Z","dependencies_parsed_at":"2024-03-08T18:32:12.204Z","dependency_job_id":"5f5aa185-ba17-4c58-9635-1c5a563df19a","html_url":"https://github.com/francoisschwarzentruber/simpleanimation","commit_stats":{"total_commits":15,"total_committers":2,"mean_commits":7.5,"dds":0.4,"last_synced_commit":"f0cf28c2ebb71ad4d30287f00b791fb515bebb8b"},"previous_names":["francoisschwarzentruber/simpleanimation"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/francoisschwarzentruber/simpleanimation","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/francoisschwarzentruber%2Fsimpleanimation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/francoisschwarzentruber%2Fsimpleanimation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/francoisschwarzentruber%2Fsimpleanimation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/francoisschwarzentruber%2Fsimpleanimation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/francoisschwarzentruber","download_url":"https://codeload.github.com/francoisschwarzentruber/simpleanimation/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/francoisschwarzentruber%2Fsimpleanimation/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32961785,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-12T23:30:32.555Z","status":"ssl_error","status_checked_at":"2026-05-12T23:30:18.191Z","response_time":102,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["animation","simple-app"],"created_at":"2024-10-01T14:24:51.681Z","updated_at":"2026-05-13T00:02:48.786Z","avatar_url":"https://github.com/francoisschwarzentruber.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# simpleanimation\n\nAn easy-to-use tool for creating small animations by coding. The tool is still in developpement. The philosophy is to write Javascript code with the help of these functions:\n- `cls()` clears the screen\n- `wait(2000)` waits 2000ms until going to the next instruction\n- functions that creates and returns objects, for instance `rect({x:2, y:3, w: 10, h: 20, color: \"red\"})` or `line({x1:2, y1: 3, x2:19, y2: 12})` or `latex(\"\\frac 1 2\", {x:300, y:200})`, etc.\n- a function for animating `mv(obj, {x: 5, duration: 500})`. The `mv` works for any kind of objects and the you may assign any property\n- `del(obj)` deletes the object `obj`\n\nThat's all folks!\n\n## Examples\n\n29 lines of code produce:\n\u003cimg src=\"https://upload.wikimedia.org/wikipedia/commons/2/21/Telescopingseries.gif\"\u003e\u003c/img\u003e\n\n58 lines of code produce:\n\u003cimg src=\"https://upload.wikimedia.org/wikipedia/commons/d/d7/Alias-method-table-generation.gif\"\u003e\u003c/img\u003e\n\n56 lines of code produce:\n![CI90](https://github.com/francoisschwarzentruber/simpleanimation/assets/43071857/51b3d3ee-699e-4f86-a4cd-24a71fe8a47b)\n\nThis tool has been used to add animations to Wikipedia:\n\n- https://fr.wikipedia.org/wiki/M%C3%A9thode_des_alias#/media/Fichier:Alias-method-table-generation.gif\n- https://fr.wikipedia.org/wiki/Somme_t%C3%A9lescopique#/media/Fichier:Telescopingseries.gif\n\nThe examples are available in the folder  `examples`. Just copy/paste them in the tool for obtaining these animations are in the folder\n\n\n## Functions \n\n### Assigning default values\n\n- `setColor(\"red\")`\n- `setX(20)`;\n- `setY(10)`;\n- `setFill(\"blue\")`;\n- `setDuration(300);`\n\n### Creation of objects\n\n- `rect({x:2, y:3, w: 10, h: 20, color: \"red\"})` creates a rectangle and returns it\n- `latex(\"\\frac 1 2\", {x:300, y:200})` creates a LaTEX formula and returns it\n- `line({x1:2, y1: 3, x2:19, y2: 12})` creates a line\n\n### Animation\n\n- `mv(obj, {x: 5, duration: 500})` moves the object `obj` by modifying `x` coordinate during 500ms\n- `exec(() =\u003e ...)` executes the function given by its lambda expression\n\n### Waiting\n- `wait(2000)` waits 2000ms\n\n### Clear the screen\n\n- `cls()` clears the screen\n\n### Deleting objects\n- `del(obj)` deletes the object `obj`\n\n\n## Roadmap\n- handle more properties\n- drawing for specifying new objects or moving objects\n- go to a specific point in the animation by moving in the code\n- export in GIF (but not sure because Peek works)\n- export in MP4 (but not sure because Peek works)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrancoisschwarzentruber%2Fsimpleanimation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffrancoisschwarzentruber%2Fsimpleanimation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrancoisschwarzentruber%2Fsimpleanimation/lists"}