Skip to content
Snippets Groups Projects
  1. Nov 15, 2022
  2. Oct 02, 2022
    • Jerome Humbert's avatar
      Add `assert_approx_eq!()` testing macro (#66) · dd6ac741
      Jerome Humbert authored
      Clarify testing code and potential assertions message with the use of a
      new `assert_approx_eq!()` macro for `f32` equality check with a
      tolerance. The macro leverages `abs_diff_eq()` but produces a better
      assertion message in case of failure. It also allows skipping the
      tolerance parameter to use the default of `1e-5`, which is the
      "standard" tolerance to use for progress and other small-ish values that
      are expected to be equal but might be slightly off due to rounding
      errors.
      
      This change ignores the complications of testing for floating-point
      equality in a generic way, which is too complex, and instead restrict
      the usage to values like progress (range [0:1]) and other small position
      values around the origin.
      dd6ac741
    • shuo's avatar
      Add an example of menu hover animation (#59) · 15c5bdbd
      shuo authored
      15c5bdbd
  3. Sep 29, 2022
  4. Sep 27, 2022
  5. Aug 04, 2022
  6. Aug 03, 2022
    • Alex Saveau's avatar
      Support running an animation N times (#19) · 6a871576
      Alex Saveau authored
      Remove `TweeningType` and split its functionalities between a new `RepeatCount`
      controlling the number of repeats of an animation on one hand, and
      `RepeatStrategy` controlling the way an animation restarts after a loop ended
      on the other hand. This allows more granular control on the type of playback.
      
      Remove the `tweening_type` parameter from `Tween<T>::new()` and replace it with
      builder methods `with_repeat_count()` and `with_repeat_strategy()`.
      
      Remove `is_looping()` from all tweenables, which was not implemented for most
      of them anyway.
      6a871576
  7. May 31, 2022
  8. Apr 23, 2022
  9. Feb 12, 2022
Loading