Source code |
Built with Processing |
Cyan balls follow the target (a green circle).
The target is controlled with the mouse cursor and moves also in the depth direction.
Perspective mode will be on/off with mouse press. When perspective mode is on, size of balls are drawn considering depth.
ターゲット(緑色の円)を水色のボールが追いかける。
ターゲットはマウスで操作できる。ターゲットは奥行き方向にも動く。
マウスボタンを押すと遠近法モードのオン/オフが切り替わる。遠近法モードではボールのサイズが奥行きを考慮した物になる。