受到迈克尔·比尔(Michael Bill)的完美圈子漏洞的启发;用C ++写。
g++ -o run.out draw.cpp -framework ApplicationServices
确保在编译时使用-framework ApplicationServices
,否则您会遇到错误。
将光标放在白色圆圈的中间。
./run
如果要执行参数,请改用以下内容:
./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
查看Michael的Perfect-Circle漏洞:https://github.com/michael-bill/perfect-circle/