| 9 | ) |
| 10 | |
| 11 | type Model struct { |
| 12 | Sw, Sh int |
| 13 | Scale float64 |
| 14 | Background Color |
| 15 | Target *image.RGBA |
| 16 | Current *image.RGBA |
| 17 | Context *gg.Context |
| 18 | Score float64 |
| 19 | Shapes []Shape |
| 20 | Colors []Color |
| 21 | Scores []float64 |
| 22 | Workers []*Worker |
| 23 | } |
| 24 | |
| 25 | func NewModel(target image.Image, background Color, size, numWorkers int) *Model { |
| 26 | w := target.Bounds().Size().X |
nothing calls this directly
no outgoing calls
no test coverage detected