Highlight
ABSTRACT
The Highlight animation function emphasizes a subset of a mesh-tree of a variable over a specified duration, flashing the selected portion to a specified color. Note that highlight manages the trees for you; you do not need to provide a tree
PARAMETERS
value | the mesh-tree that houses the meshes to be highlighted |
value | the mesh-tree that houses the meshes to be highlighted |
tag_predicate(tag) | The predicate function that determines whether a mesh that is part of the provided mesh-tree should undergo the flashing effect as a result of this animation. |
color | a 4-vector representing the color that the meshes should be flashed to |
color | a 4-vector representing the color that the meshes should be flashed to |
unit_map(u) | Defaults to smooth(u). If provided, it is essentially a rate function that controls the timing of this animation. It receives normalized time from 0 to 1 and returns a normalized time from 0 to 1. |
time | How long the entire animation should take |
RETURN
Returns an animation that, when executed, produces a flashing effect for the specified subset of the variable's mesh-tree over the specified duration.
DECLARATION
func Highlight([mesh_tree] {[full] {value}, [tag_pred] {value, tag_predicate(tag)}}, [flash] {[main] {color}, [timed] {color, unit_map(u)}}, time)