{"id":13669685,"url":"https://github.com/Tencent/Fanvas","last_synced_at":"2025-04-27T08:32:51.647Z","repository":{"id":71777321,"uuid":"49562423","full_name":"Tencent/Fanvas","owner":"Tencent","description":"Fanvas，一键把swf转为html5 canvas动画。 Fanvas is a tool which can turn flash into canvas animation with just one key!","archived":true,"fork":false,"pushed_at":"2019-10-24T03:48:59.000Z","size":7706,"stargazers_count":550,"open_issues_count":0,"forks_count":195,"subscribers_count":37,"default_branch":"master","last_synced_at":"2024-11-11T07:38:40.268Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"ActionScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Tencent.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"license.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2016-01-13T09:08:06.000Z","updated_at":"2024-11-04T15:58:55.000Z","dependencies_parsed_at":"2023-03-03T23:30:50.682Z","dependency_job_id":null,"html_url":"https://github.com/Tencent/Fanvas","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tencent%2FFanvas","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tencent%2FFanvas/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tencent%2FFanvas/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tencent%2FFanvas/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Tencent","download_url":"https://codeload.github.com/Tencent/Fanvas/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251112597,"owners_count":21538162,"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":"2024-08-02T09:00:18.729Z","updated_at":"2025-04-27T08:32:46.637Z","avatar_url":"https://github.com/Tencent.png","language":"ActionScript","funding_links":[],"categories":["ActionScript"],"sub_categories":[],"readme":"项目目前是存档状态，感谢您对腾讯开源项目的关注！您可以继续fork后更新迭代，感谢理解和支持；如果您有其他疑问，建议请发送邮件：tencentopen@tencent.com 与我们联系\n\n-----\n\n\n什么是Fanvas？\n------------------------------------------\n\nFanvas是一个把swf转为html5 canvas动画的系统，由两部分组成：Actionscript实现的解析器、js运行库。\n\nFlash做动画是最成熟最高效的方式，但由于终端基本不支持Flash播放，这给终端的动画制作带来了不少麻烦。\n\nFanvas是Flash和Canvas的完美结合，可以把swf（包括矢量和位图）完美地转化为canvas动画，让美术妹子一次制作，到处运行。。。\n\n嘿嘿~~~让美术妹子也搭上H5的快车。\n\n\n\nFanvas的技术难点？\n------------------------------------------\n1、兼容swf的各种格式，主要是各种矢量命令和多种多样的图片格式；\n\n2、实现高效的html5运行库，自主实现了位图缓存、自动脏区识别、脏区重绘等技术。\n\n\nFanvas的优势？\n------------------------------------------\n能转化swf为H5动画的工具，除了Fanvas还有大名鼎鼎的google和adobe的产品——swiffy和flashcc。\n对比之下，Fanvas有如下优势：\n\n1、从swf文件直接转化为Html5动画（google的swiffy和adobe的flashcc都不支持，两个产品都需要通过fla源文件处理）；\n\n2、精简编排的JSON数据，使swf转化后的js数据文件非常小，普遍比flashcc导出的要小20%到50%；\n\n3、精简的运行库，混淆后只有35k，gzip后只有10k左右。而swiffy和flashcc的运行库混淆后都超过100K;\n\n4、开源，可供使用者二次开发（请保留Fanvas字样或版权声明）。\n\n\n\n如何使用？\n------------------------------------------\n只需要一键导入swf，转化完成后一键导出canvas动画js。\n\n具体请参考bin目录的《使用说明》\n\n\n源代码说明\n------------------------------------------\nexporter是as3.0实现的swf文件解析器，解析后输出json数据；\n\nruntime是js运行库，用于解析json数据，转化为最终canvas动画。\n\n\nDEMO\n------------------------------------------\nhttp://kenkozheng.github.io/fanvas/magicEmotion/demo1/\n\nhttp://kenkozheng.github.io/fanvas/magicEmotion/demo2/\n\nhttp://kenkozheng.github.io/fanvas/magicEmotion/demo3/\n\nhttp://kenkozheng.github.io/fanvas/magicEmotion/demo4/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FTencent%2FFanvas","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FTencent%2FFanvas","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FTencent%2FFanvas/lists"}