archive 2024年8月制作 The fastest Cubic Bezier Easing engine on Scratch, by solving the cubic equation! Scratch最速の三次ベジェイージングです!三次方程式の解を求めることで実現しています。 Instruction of this project : Drag to move pointers. Space : Show/hide cat E : Show pointer's coordinates C : Show values B : benchmark Instruction of easing function : press E to see the coordinates of the pointers. Go to "USE THIS" sprite, then find the function called "Bezier Easing". The list is arranged in a row like "x1, y1, x2,y2". You should probably know where to put the values. Elapsed : Set value between 0 to 1. It's like a timer. The value will be returned to the variable called "ease:return". Backpack the sprite, not codes. You should be able to use this easily! Please share easings you made in the comment, I'll appriciate it :) ドラッグでポインターを動かす スペース : ネコの表示 E : ポインターの座標が書いてあるリストを表示する C : いろいろ値を表示 B : ベンチマーク イージング関数の使い方 Eキーを押して、ポインターの座標がわかるようにしてください。"USE THIS"という名前のスプライトにいって、"Bezier easing"という名前の関数を探してください。 ポインターの座標のリストは、"x1,y1,x2,y2"という順番で並んでいます。どこにどの値を入れるかは分ったでしょう。 Elapsed : 0から1の値を入れてください。タイマーみたいなものです。 Benchmark: Scratch : 50K calculations per second, 20x faster than previous engine Turbowarp : 3.3M calculations per second, 6.5x faster Btw simple power easing can be calculated around 10M times per second on turbowarp, considering how customizable bezier easing is, getting one-third the speed power easing is quite impressive! My PC spec: Intel core i5-11400f, Nvidia geforce RTX 3050 Browser used : Microsoft Edge @-Rex- 's Benchmark score : 175 credit: cube root calculation : @yaya3156