ぐるぐる回る渦を描画するプログラムです
うずの1パーツを描くのはこのプログラムです。ペンの太さと向きを変えながら描画しているだけです
このプログラムを実行するとこうなります
最終的には12個のうずを30°ずつ角度を変えなら描画してします。さらに、それらの渦の開始角度を変えながら再描画を繰り返すことでアニメーション化しています
Scratch 3.0に対応した書籍です[PR]
リンク
リンク
リンク
ぐるぐる回る渦を描画するプログラムです
うずの1パーツを描くのはこのプログラムです。ペンの太さと向きを変えながら描画しているだけです
このプログラムを実行するとこうなります
最終的には12個のうずを30°ずつ角度を変えなら描画してします。さらに、それらの渦の開始角度を変えながら再描画を繰り返すことでアニメーション化しています
It is a program that draws a spinning vortex.
It is this program that draws one part of the vortex. I’m just drawing while changing the thickness and orientation of the pen.
When I run this program it looks like this.
In the end, 12 vortices are drawn if the angle is changed by 30°. Furthermore, it is animated by repeating redrawing while changing the start angle of those vortices.