MCPcopy
hub / github.com/fogleman/primitive / Init

Method Init

primitive/worker.go:39–44  ·  view source on GitHub ↗
(current *image.RGBA, score float64)

Source from the content-addressed store, hash-verified

37}
38
39func (worker *Worker) Init(current *image.RGBA, score float64) {
40 worker.Current = current
41 worker.Score = score
42 worker.Counter = 0
43 worker.Heatmap.Clear()
44}
45
46func (worker *Worker) Energy(shape Shape, alpha int) float64 {
47 worker.Counter++

Callers 2

StepMethod · 0.80
runWorkersMethod · 0.80

Calls 1

ClearMethod · 0.80

Tested by

no test coverage detected