Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Animation part 4: Presets #1305

Merged
merged 9 commits into from
Aug 6, 2024
Merged

Animation part 4: Presets #1305

merged 9 commits into from
Aug 6, 2024

Commits on Aug 5, 2024

  1. transition/script: make duration and delay variable

    Instead of just hardcoded numbers. Now they can be defined with
    expressions just like start and end.
    
    Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
    yshui committed Aug 5, 2024
    Configuration menu
    Copy the full SHA
    208f946 View commit details
    Browse the repository at this point in the history
  2. transition/curve: de-virtualize struct curve

    Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
    yshui committed Aug 5, 2024
    Configuration menu
    Copy the full SHA
    6b11116 View commit details
    Browse the repository at this point in the history

Commits on Aug 6, 2024

  1. tools: add animgen

    Add a tool to generate C function from a compiled animation script.
    The generated function will reproduce the animation script when called.
    
    The goal is to implement animation presets. Instead of creating strings
    and then compile them into scripts, by using these generated function,
    we can skip the parsing step and create compiled scripts directly.
    
    Placeholders are supported in the preset script, so some configurability
    still exists even when using presets.
    
    Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
    yshui committed Aug 6, 2024
    Configuration menu
    Copy the full SHA
    f3b2db1 View commit details
    Browse the repository at this point in the history
  2. .gitignore: add .vscode

    Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
    yshui committed Aug 6, 2024
    Configuration menu
    Copy the full SHA
    23f44d7 View commit details
    Browse the repository at this point in the history
  3. transition: add support for animation presets

    Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
    yshui committed Aug 6, 2024
    Configuration menu
    Copy the full SHA
    5a69a26 View commit details
    Browse the repository at this point in the history
  4. transition/presets: add slide-in/out, fly-in/out

    Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
    yshui committed Aug 6, 2024
    Configuration menu
    Copy the full SHA
    d04f825 View commit details
    Browse the repository at this point in the history
  5. tests: test animation presets

    Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
    yshui committed Aug 6, 2024
    Configuration menu
    Copy the full SHA
    dd208ff View commit details
    Browse the repository at this point in the history
  6. tools/animgen: support more sophisticated preset parameters

    Support multiple choice parameters in additional to plain old numbers.
    
    With this we are now able to change the direction of sliding, yippee!
    
    Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
    yshui committed Aug 6, 2024
    Configuration menu
    Copy the full SHA
    756589d View commit details
    Browse the repository at this point in the history
  7. ci: test animgen

    Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
    yshui committed Aug 6, 2024
    Configuration menu
    Copy the full SHA
    5db4192 View commit details
    Browse the repository at this point in the history