DarracottDude
2nd May 2006 18:39 UTC
Probably a dumb question
Remember i'm a beginner, so don't be too hard on me. I have searched the forums and read both tips and tricks threads, but haven't found an answer to my simple question.
Suppose i have a line, and i want one end not to move, and the other end to move in a wavy manner, or alternatively both ends not to move and only the middle wavy. Can i do it in a superscope? Or is dynamic movement best for this?
Thanks for any suggestions.
shreyas_potnis
2nd May 2006 19:32 UTC
If your line has only 2 points, then you can easily define (x1,y1), (x2,y2) and then use:
init => n=2;
Frame =>
cb=0;
//define x1,x2, y1,y1 here
Pixel =>
x=if(cb,x1,x2);
y=if(cb,y1,y2);
cb=1;
Also, if you want your superscope to be wavy, you can always add some sine function to your original x or y
If you want a single bump then you can use x=i*2-1;y=exp(-sqr(x));
And if you want to change the position of a particular nth point, you can use:
Frame => cb=0;
Pixel =>
cb=cb+1;
x = if(equal(cb, your_nth_point), X_your_nth_point,x);
y = if(equal(cb, your_nth_point), Y_your_nth_point,y);
DarracottDude
2nd May 2006 21:12 UTC
Thanks. I've been experimenting with this, and my lines just sit there, not moving, like a dead fish. I must be really stupid. :-)