clipscript's People
clipscript's Issues
フレームレートを20fpsに変更可能にする
- main.rb に設定可能にする
- clip_manager.rb内で指定された更新単位になるまでroot.updateをskipすればよい。(root.drawは実行する)
Graphics::SetTargetFrameRateHz
を使うとGUIも20fpsになってしまうのでやらない。 https://siv3d.github.io/ja-jp/articles/mistakes/
色、太さ、終了時間をUIから調整可能に
保存ボタンの横に追加?
Gifアニメを保存可能にする
AnimatedGIFWriterとレンダーテクスチャを使えばいけそう。
- Ctrl+Sまたは保存ボタンが押されたらファイルダイアログ開く、ファイル保存先パス取得
- siv3dでファイル選択ダイアログを開く
- AnimatedGIFWriter作成
- レンダーテクスチャを作成してScopedRenderTarget2Dに設定
- 0から終わりの時間まで再生(が実際はレンダーテクスチャに出力されるため何も表示されない)しながらwriterFrame
- AnimatedGIFWriterをclose()してgifアニメ保存
main.rbにパラメータを出す
main.rbなら編集後自動リロードされる。
- スロー倍率 CLIP_SCRIPT_SLOW_RATE
- 定数設定で上書き可能にする
GifDrawer
- ペン色 PEN_COLOR
- ペン太さ PEN_THICKNESS
- 消しゴム太さ ERASER_THICKNESS
- 終わりの時間 DEFAULT_END_TIME
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.