So, after looking over the animation for a bit more, and considering what you're
probably actually trying to do:
1. I'm not actually clear on how you're working out all that color map and
I think I'd find the distance to the farthest corner (not necessarily
max_extent) and the nearest corner. Divide both distances by farthest corner
distance. That gives you 1 and less than 1.
define color map, and then scale back up by distance to the farthest corner.
I think that should give you that thin shell of varying color extending from
nearest corner to farthest corner.
2. You're not really looking for "which" corner is nearest or farthest,
programmatically, you're looking for the largest and smallest distances.
So, just calculate all 8 distances and use min() and max().
Post a reply to this message