-
Notifications
You must be signed in to change notification settings - Fork 0
/
RunningAnimationParams.go
38 lines (36 loc) · 1.7 KB
/
RunningAnimationParams.go
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
37
38
package animatedledstrip
type runningAnimationParams struct {
AnimationName string `json:"animationName"`
Colors []*preparedColorContainer `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"`
SourceParams *animationToRunParams `json:"sourceParams"`
}
func RunningAnimationParams(animationName string, colors []*preparedColorContainer, 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, sourceParams *animationToRunParams) *runningAnimationParams {
return &runningAnimationParams{
AnimationName: animationName,
Colors: colors,
Id: id,
Section: section,
RunCount: runCount,
IntParams: intParams,
DoubleParams: doubleParams,
StringParams: stringParams,
LocationParams: locationParams,
DistanceParams: distanceParams,
RotationParams: rotationParams,
EquationParams: equationParams,
SourceParams: sourceParams,
}
}