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

Comments

2 participants
@nobodxbodon
Copy link
Member

nobodxbodon commented Aug 11, 2017

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

@nobodxbodon

This comment has been minimized.

Copy link
Member Author

nobodxbodon commented Sep 2, 2017

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

@nobodxbodon

This comment has been minimized.

Copy link
Member Author

nobodxbodon commented Sep 4, 2017

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

@nobodxbodon

This comment has been minimized.

Copy link
Member Author

nobodxbodon commented Sep 6, 2017

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

@nobodxbodon

This comment has been minimized.

Copy link
Member Author

nobodxbodon commented Sep 8, 2017

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(汉化成了"保存状态/恢复状态").
下面打算分几步走:

  • 再写几个示例, 同时汉化相关接口
  • 编写新手入门教程
  • 开发不同目标用户的库, 可能参考LOGO语言或Scratch, 但需要更接近实用
  • 在线开发环境, 争取实践#11 的一些思路
@nobodxbodon

This comment has been minimized.

Copy link
Member Author

nobodxbodon commented Sep 27, 2017

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

@nobodxbodon

This comment has been minimized.

Copy link
Member Author

nobodxbodon commented Oct 8, 2017

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

@nobodxbodon

This comment has been minimized.

Copy link
Member Author

nobodxbodon commented Oct 9, 2017

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

@nobodxbodon nobodxbodon reopened this Oct 9, 2017

@nobodxbodon

This comment has been minimized.

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

@absente absente added this to else in E2030 Aug 15, 2018

@absente absente added this to in e2018 Nov 30, 2018

@nobodxbodon nobodxbodon referenced this issue Jan 28, 2019

Open

组内repo盘点 #126

39 of 61 tasks complete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.