Sometimes to get modulo 1 and handle negative modulo I've been doing something like float p = (p+1234)%1; I thought it was a quick and fun way to do it in the context of creative coding. It turns out that this can be really bad for precision. So for that animation I was using double instead of float to get smooth movement but now I'm back to float with p = ((p%1)+1)%1;
Etienne Jacob
in reply to Etienne Jacob • • •I thought it was a quick and fun way to do it in the context of creative coding. It turns out that this can be really bad for precision. So for that animation I was using double instead of float to get smooth movement but now I'm back to float with p = ((p%1)+1)%1;
Daniel Kochmański
in reply to Etienne Jacob • • •Etienne Jacob
Unknown parent • • •Wilfried Klaebe
in reply to Etienne Jacob • • •mesmerizing...
@bleuje
AutodidaktJörg
in reply to Etienne Jacob • • •𝑃𝒓𝒂𝒋𝒂𝒚
in reply to Etienne Jacob • • •Medea Vanamonde 🏳️⚧️
in reply to Etienne Jacob • • •@josh
Hivemind Carrier Wave
steve cooley
in reply to Etienne Jacob • • •binchicken
in reply to Etienne Jacob • • •Joschi :3
in reply to Etienne Jacob • • •Pakhardoric
in reply to Etienne Jacob • • •- <5 (0 votes)
- <10 (0 votes)
- more (0 votes)
- Don't know (watchdog reset) (0 votes)
Poll end: 6 days agoYzoka
in reply to Etienne Jacob • • •Dieses Bild benutze ich um eine illusion der Zeit zu beenden.
Die Zeit als etwas zu sehen was auf dich zukommt.
One less Illusion of Time.
Time does not move towards you.