MCPcopy Create free account
hub / github.com/drawcall/AgileJS / setColor

Method setColor

src/animate/Keyframes.js:118–122  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

116 }
117
118 setColor(obj) {
119 if (obj.color) {
120 if (obj.color === 'random') obj.color = Color.randomColor();
121 }
122 }
123
124 destroy() {
125 Utils.destroyObject(this.keyframes);

Callers 1

addMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected