|
|
|
|
#1 |
|
Member
|
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. |
|
|
|
|
|
#2 |
|
[STILL a retard!]
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. |
|
|
|
|
|
#3 |
|
Member
|
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. |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|