Thread: First preset
View Single Post
Old 17th January 2009, 11:06   #19
Nitorami
Major Dude
 
Join Date: Mar 2008
Location: Erlangen
Posts: 856
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

rot=.00999*rot+.6+.55*sin(.05*time);

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, 738 views)
Nitorami is offline   Reply With Quote