Thread: First preset
View Single Post
Old 17th January 2009, 12:06   #19
Major Dude
Join Date: Mar 2008
Location: Erlangen
Posts: 859
Yes, charming idea of how to use shapes. Very nice, these easter eggs. I took the liberty to polish a few of them up a bit

@Amandio: I am not sure what you had in mind with this code


It looks like you intended to use rot from the previous frame, which is normally a useful idea to smooth variables but be warned it does not work with milkdrop internal vars such as rot, which are not remembered from one frame to the next, therefore rot = 0.0099*rot does nothing (if not something undefined) You must always create an own persistent var first, e.g.

rot_ = 0.99 * rot_ + (1-.99) * step;

rot_ would then follow the input variable "step" slowly, and can THEN be assigned to rot:

rot = rot_;

Took me a while to discover traps as these
Attached Files
File Type: milk amandio c - small life polished (goes disco).milk (6.5 KB, 743 views)
Nitorami is offline   Reply With Quote