Arrow to nearst target. Draw by openFrameworks

[ Video ]

[ About ]
3つのうち最も近いターゲットを矢印で指す。
座標の距離はglm::distance()で取得。

Point the arrow to the closest target of the three.
The distance of the coordinates is obtained by glm::distance().

[ Source ]

[ Link ]
https://github.com/junkiyoshi/Insta20210705

Gap to static. Draw by openFrameworks

[ Video ]

[ About ]
昨日の投稿の反転版。
移動量を下のように制動をつける。
auto power = gap_param 0.5 ? 0 : ofMap(gap_param, 0, 0.5, 1, 0);

Reversed version of yesterday’s post.
Braking the amount of movement as shown below.
auto power = gap_param 0.5 ? 0 : ofMap(gap_param, 0, 0.5, 1, 0);

[ Source ]

[ Link ]
https://github.com/junkiyoshi/Insta20210701

[ Kinako ]

Gap tremor. Draw by openFrameworks

[ Video ]

[ About ]
OpenCVでフレーム間の差分を計算して、閾値を超えた箇所だけ位置をずらして描写する。
位置情報を引数にofNoise()で計算した座標量に、0から1の値を掛けて調整する。

OpenCV calculates the difference between frames and shifts the position of the image only when the threshold is exceeded.
The position information is used as an argument, and the amount of coordinates calculated by ofNoise() is adjusted by multiplying by a value between 0 and 1.

[ Source ]

[ Link ]
https://github.com/junkiyoshi/Insta20210630

[ Kinako ]