マイケル・ビルの完璧な循環エクスプロイトからインスピレーションを受けました。 C ++で書かれています。
g++ -o run.out draw.cpp -framework ApplicationServices
コンパイル中に-framework ApplicationServices
使用してください。そうしないと、エラーが発生します。
カーソルを白い円の中央に置きます。
./run
パラメーターの実行をspeicifieする場合は、代わりにこれを使用します。
./run.out -wait 5000 -steps 40 -sleep 60 -r 250
それに応じて、 wait
、 steps
、 sleep
、 r
の値を変更できます。
wait(ms) - wait time before the program starts to draw the circle
steps(n) - the circle is drawn in n steps
sleep(ms) - each step takes this amount of ms to run
r(px) - radius in px
マイケルの完璧な循環エクスプロイトをご覧ください:https://github.com/michael-bill/perfect-circle/