Implement apply_to_canvas to avoid redundant code
authorMegaBrutal <code+git@megabrutal.com>
Sun, 17 Jul 2022 22:30:00 +0000 (00:30 +0200)
committerMegaBrutal <code+git@megabrutal.com>
Sun, 17 Jul 2022 22:30:00 +0000 (00:30 +0200)
commitc5153bdc69c2b03ca850a78f84969b3781a38c2b
treea2246ceb1a0f605c6e55aa6930c1293fb5508584
parentcada9e4c677c9bd347bee4496080530939a5a456
Implement apply_to_canvas to avoid redundant code

It takes a closure and applies it to the canvas.
src/main.rs