Add more notes to canvas/shatter.go

Maybe this should be an issue.
This commit is contained in:
Sasha Koshka 2024-09-12 14:01:40 -04:00
parent 964381eaf4
commit 34ef447728

View File

@ -4,7 +4,8 @@ import "image"
import "slices"
// TODO look into other options besides returning a slice, as that causes memory
// allocations.
// allocations. Perhaps an iterator? Maybe we could also *take in* an iterator
// for the rocks. This could result in zero allocations.
// Shatter takes in a bounding rectangle, and several image.Rectangles to be
// subtracted from it. It returns a slice of rectangles that tile together to