-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAnimationToRunParams.go
More file actions
36 lines (34 loc) · 1.49 KB
/
AnimationToRunParams.go
File metadata and controls
36 lines (34 loc) · 1.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
package animatedledstrip
type animationToRunParams struct {
Animation string `json:"animation"`
Colors []*colorContainer `json:"colors"`
Id string `json:"id"`
Section string `json:"section"`
RunCount int `json:"runCount"`
IntParams map[string]int `json:"intParams"`
DoubleParams map[string]float64 `json:"doubleParams"`
StringParams map[string]string `json:"stringParams"`
LocationParams map[string]*location `json:"locationParams"`
DistanceParams map[string]*distance `json:"distanceParams"`
RotationParams map[string]*rotation `json:"rotationParams"`
EquationParams map[string]*equation `json:"equationParams"`
}
func AnimationToRunParams(animation string, colors []*colorContainer, id string, section string,
runCount int, intParams map[string]int, doubleParams map[string]float64, stringParams map[string]string,
locationParams map[string]*location, distanceParams map[string]*distance, rotationParams map[string]*rotation,
equationParams map[string]*equation) *animationToRunParams {
return &animationToRunParams{
Animation: animation,
Colors: colors,
Id: id,
Section: section,
RunCount: runCount,
IntParams: intParams,
DoubleParams: doubleParams,
StringParams: stringParams,
LocationParams: locationParams,
DistanceParams: distanceParams,
RotationParams: rotationParams,
EquationParams: equationParams,
}
}