Skip to content

Commit 9f526ff

Browse files
committed
update viewer
1 parent b5c492a commit 9f526ff

2 files changed

Lines changed: 125 additions & 116 deletions

File tree

viewer/animation/other/orbit.ls

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,15 @@ ret = do
33
desc: ''
44
edit: do
55
radius: default: 60, type: \number, unit: \%, min: 0, max: 1000
6+
7+
step: (t, config = {}) ->
8+
t = t - Math.floor(t)
9+
a = Math.PI * 2 * t
10+
tx = Math.sin(a) * config.radius
11+
ty = -1 * Math.cos(a) * config.radius
12+
rz = a
13+
return {tx, ty}, {rz}
14+
615
code: (config) ->
716
"""
817
@keyframes ld-orbit

0 commit comments

Comments
 (0)