Skip to content

Instantly share code, notes, and snippets.

@sumerman
Created August 3, 2010 10:08
Show Gist options
  • Save sumerman/506138 to your computer and use it in GitHub Desktop.
Save sumerman/506138 to your computer and use it in GitHub Desktop.
%% delta(x speed), -//-y, px (lim=px*x),-//- py
{Scale, Sdurat} = gen_scale(linear(1), linear(1), 2, 2),
{Irotate, Rdurat} = gen_rotate(linear(2), 4.5), %% delta(speed), p (lim = p*360)
Rotate = delay(Sdurat, Irotate),
{Itrans, Tdurat} = gen_translate(pow(2), 3.7),
Trans = delay(Sdurat + Rdurat, Itrans),
Trigger = delay(Sdurat + Rdurat + Tdurat, gen_trigger(TrigFunc)),
Anim = fun(Target, T) ->
Scale(Target, T), Rotate(Target, T), Trans(Target, T), Trigger(Target, T)
end.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment