MCPcopy
hub / github.com/g3n/engine / NewAnimation

Function NewAnimation

animation/animation.go:29–34  ·  view source on GitHub ↗

NewAnimation creates and returns a pointer to a new Animation object.

()

Source from the content-addressed store, hash-verified

27
28// NewAnimation creates and returns a pointer to a new Animation object.
29func NewAnimation() *Animation {
30
31 anim := new(Animation)
32 anim.speed = 1
33 return anim
34}
35
36// SetName sets the animation name.
37func (anim *Animation) SetName(name string) {

Callers 1

LoadAnimationMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected