Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
common_tasks: add RADIAL_LOOP helper macro
Helps with writing radially symmetrical patterns. Replace this: int cnt = 69; cmplx dir = initial_dir; cmplx turn = cdir(M_TAU/cnt); for(int = 0; i < cnt; ++i, dir *= turn) { pew_pew(dir); } with this: RADIAL_LOOP(l, 69, initial_dir) { pew_pew(l.dir); }
- Loading branch information