Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

将p5js的API中文化 #20

Closed
nobodxbodon opened this issue Aug 11, 2017 · 8 comments
Closed

将p5js的API中文化 #20

nobodxbodon opened this issue Aug 11, 2017 · 8 comments

Comments

@nobodxbodon
Copy link
Member

此处讨论及后续引发.
做了个初步的演示: https://github.com/program-in-chinese/p5js_in_chinese

@nobodxbodon
Copy link
Member Author

为尽量以低代价扩大影响, 考虑从这个项目入手, 为一些比较有视觉效果的开发提供中文开发环境. 相似的项目有Z语言. 短期内可能不会创建中文语法, 而只是汉化常用接口, 最理想的是建一个类似jsfiddle的在线开发环境, 并在相关社区中进行推广. @program-in-chinese/all 请多多提议.

@nobodxbodon
Copy link
Member Author

之前考虑过添加一个从p5js sketch直接导出到gif的功能, 但做了一些调研发现暂时可能比较可行的还是用它的接口saveFrames保存成图片, 然后再由用户自行生成gif比较现实. 简而言之还是关注于p5js核心部分的汉化和开发环境比较合适.

@nobodxbodon
Copy link
Member Author

第一步, 打算写一个最简单的p5js的中文代码示例, 按照p5JS to GIF保存成图片文件, 然后按照Making GIFs with GIMP生成gif, 并对外演示.

@nobodxbodon
Copy link
Member Author

https://github.com/program-in-chinese/p5js_in_chinese/blob/master/%E8%9E%BA%E6%97%8B/%E6%BC%94%E7%A4%BA.js

default

汉化过程中, 发现p5js开发动画对几何知识要求不低. 有些接口命名不大直观, 比如push/pop(汉化成了"保存状态/恢复状态").
下面打算分几步走:

@nobodxbodon
Copy link
Member Author

由于工作和设计无关, 也没有相关的业余爱好, 继续的动力不足.
另一硬伤: 由于program-in-chinese/p5js_in_chinese#1 3D效果无法输出到图片, 无法演示, 感觉前景有限.
Processing库也许将来可以和#33 结合, 用来实现类似Logo的教学语言. 但也不是短期目标.

@nobodxbodon
Copy link
Member Author

最近在追"爸爸去哪儿". 有点冲动想蹭一个热度, 做一个Jasper和小春的Can you stop angry now的片段. 可能会参考画脸的代码. 如果有进展, 会重开.

@nobodxbodon
Copy link
Member Author

第一步静态演示:
screen shot 2017-10-08 at 5 16 02 pm
还需调脸大小, 加动画

@nobodxbodon nobodxbodon reopened this Oct 9, 2017
@nobodxbodon
Copy link
Member Author

nobodxbodon commented Oct 9, 2017

最简导出方法: 在Gimp中, Open as layers所有图片, Export as -> xx.gif, 选择延迟100ms (保存时10帧/s), 导出.
_10
p5js还是很底层的(帧的控制等等), 感觉需要动画制作入门.
http://tieba.baidu.com/p/5364903379

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants