[Fluxus] delta

Chris Targett xin at xlevus.net
Fri Nov 5 14:43:27 PDT 2010


Because (draw-*) does not retain state, whereas (build-*) does you are
rotating your cube (* 45 0.01) degrees every frame. After each frame
the cube is removed and then reset back to a rotation of zero.

If you want to use stateless primitives you should use (time).

Hope that helps :)
Chris Targett



On Sat, Nov 6, 2010 at 10:22 AM, Luis navarro del angel
<luisn30 at hotmail.com> wrote:
>
> Hi,
>
> When I use (delta) with (draw*) instead of (build*) it doesn't work, why
> does this happen? I think that the reason of this is that the (draw*)
> command needs to be refreshed every-frame and the (build*) one doesn't.
>
> ex.
>
> (clear)
> (define (cube)
> (rotate (* 45 (delta)) 0 0))
> (draw-cube)); draw instead of build
> (every-frame (cube))
>
> And I understand that (delta) makes the time between each frame to be
> constant. But this will not be the same time for the (draw-cube) part.
> I hope this make some sense.
>
> Thanks,
>
> Luis
>



More information about the Fluxus mailing list