Old 22nd August 2007, 19:04   #1
OnionRingOfDoom
Member
 
OnionRingOfDoom's Avatar
 
Join Date: Nov 2003
Location: Brookly, NYC
Posts: 72
Send a message via AIM to OnionRingOfDoom
changing color of last 100 points

Wow, I havn't posted here in like 3 years.

Ok anyway, I have this texer scope thing, and it renders this tentacle thing. Now, I have a counter (ct) that increments by 1 for each point. The tentacle always starts in the center of the window, and the tip of it is the first point (ct = 1). The last point is always the current value of ct, I believe.

Now, what I'm trying (and failing) to do is to turn the last 100 or so points a different color.

red = band(above(ct, 0), below(ct, ct - 100));

However, ct never equals itself - 100. Is there any way anyone can make the last 100 or so points a different color? I've been banging my head over this for like 6 hours...

If you have any questions/solutions, please IM me at OnionRingOfDoom.
Attached Files
File Type: zip orodtenticle.zip (1,000 Bytes, 204 views)
OnionRingOfDoom is offline   Reply With Quote
Old 22nd August 2007, 19:40   #2
QOAL
[STILL a retard!]
 
QOAL's Avatar
 
Join Date: Apr 2002
Location: Bristol, UK
Posts: 1,167
Try something like this: red = below(ct, n/5);

Your not going to get any where with "below(ct, ct - 100)" as ct is only ever going to equal ct. I think what you wanted is n - 100.
QOAL is online now   Reply With Quote
Old 22nd August 2007, 20:24   #3
OnionRingOfDoom
Member
 
OnionRingOfDoom's Avatar
 
Join Date: Nov 2003
Location: Brookly, NYC
Posts: 72
Send a message via AIM to OnionRingOfDoom
Wow. I feel stupid :P
I'm pretty sure I tried something similar to that, but I guess I didn't use the right number. Ah well. Thanks!

Edit: after tweaking, I've found that red = below(ct, (n/ 3) - 100); works perfectly

Last edited by OnionRingOfDoom; 22nd August 2007 at 20:49.
OnionRingOfDoom is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Visualizations > AVS

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump