![]() # Objective After #17461, the ease function labels in this example are a bit cramped, especially in the bottom row. This adjusts the spacing slightly and centers the labels. ## Solution - The label is now a child of the plot and they are drawn around the center of the transform - Plot size and extents are now constants, and this thing has been banished: ```rust i as f32 * 95.0 - 1280.0 / 2.0 + 25.0, -100.0 - ((j as f32 * 250.0) - 300.0), 0.0, ``` - There's room for expansion in another row, so make that easier by doing the chunking by row - Other misc tidying of variable names, sprinkled in a few comments, etc. ## Before <img width="1280" alt="Screenshot 2025-02-08 at 7 33 14 AM" src="https://github.com/user-attachments/assets/0b79c619-d295-4ab1-8cd1-d23c862d06c5" /> ## After <img width="1280" alt="Screenshot 2025-02-08 at 7 32 45 AM" src="https://github.com/user-attachments/assets/656ef695-9aa8-42e9-b867-1718294316bd" /> |
||
---|---|---|
.. | ||
animated_mesh_control.rs | ||
animated_mesh_events.rs | ||
animated_mesh.rs | ||
animated_transform.rs | ||
animated_ui.rs | ||
animation_events.rs | ||
animation_graph.rs | ||
animation_masks.rs | ||
color_animation.rs | ||
custom_skinned_mesh.rs | ||
eased_motion.rs | ||
easing_functions.rs | ||
gltf_skinned_mesh.rs | ||
morph_targets.rs |