MCPcopy Create free account
hub / github.com/fogleman/primitive / Model

Struct Model

primitive/model.go:11–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9)
10
11type 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
25func NewModel(target image.Image, background Color, size, numWorkers int) *Model {
26 w := target.Bounds().Size().X

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected