Add more notes to canvas/shatter.go
Maybe this should be an issue.
This commit is contained in:
parent
964381eaf4
commit
34ef447728
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user