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

Basic Animate #1

Open
Sunrisepeak opened this issue Aug 28, 2023 · 17 comments
Open

Basic Animate #1

Sunrisepeak opened this issue Aug 28, 2023 · 17 comments
Labels
documentation Improvements or additions to documentation good first issue Good for newcomers

Comments

@Sunrisepeak
Copy link
Owner

Sunrisepeak commented Aug 28, 2023

hanim-demo.mp4
@Sunrisepeak
Copy link
Owner Author

hanim-demo.rotation.mp4

@Sunrisepeak
Copy link
Owner Author

output

@Sunrisepeak
Copy link
Owner Author

output

@Sunrisepeak
Copy link
Owner Author

output

@Sunrisepeak
Copy link
Owner Author

Sunrisepeak commented Aug 28, 2023

```cpp static bool move() { static auto move = hanim::move(50, 200, 350, 200, 30); static auto hobj = hanim::object::opengl::Button();
        hanim::HEngine::PlayFrame(move, hobj);

        return move.status() == hanim::HAnimate::Status::Finished;
    }
    ```
</div>
<div style="flex: 1;">
    <img src="https://github.com/Sunrisepeak/Hanim/assets/38786181/c03b336c-2c9d-42fb-a465-8255c4a1f67f" alt="move">
</div>

@Sunrisepeak
Copy link
Owner Author

移动 / Move
move
static bool move() {
    static auto move = hanim::move(50, 200, 350, 200, 30);
    static auto hobj = hanim::object::opengl::Button();

    hanim::HEngine::PlayFrame(move, hobj);

    return move.status() == hanim::HAnimate::Status::Finished;
}

|

Move Animation
    
static bool move() {
    static auto move = hanim::move(50, 200, 350, 200, 30);
    static auto hobj = hanim::object::opengl::Button();
hanim::HEngine::PlayFrame(move, hobj);

return move.status() == hanim::HAnimate::Status::Finished;

}

@Sunrisepeak
Copy link
Owner Author

move
```cpp
static bool move() {
static auto move = hanim::move(50, 200, 350, 200, 30);
static auto hobj = hanim::object::opengl::Button();

hanim::HEngine::PlayFrame(move, hobj);

return move.status() == hanim::HAnimate::Status::Finished;

}



move



static bool move() {
static auto move = hanim::move(50, 200, 350, 200, 30);
static auto hobj = hanim::object::opengl::Button();

hanim::HEngine::PlayFrame(move, hobj);

return move.status() == hanim::HAnimate::Status::Finished;

}


``` |

@Sunrisepeak
Copy link
Owner Author

move

static bool move() {
    static auto move = hanim::move(50, 200, 350, 200, 30);
    static auto hobj = hanim::object::opengl::Button();
hanim::HEngine::PlayFrame(move, hobj);

return move.status() == hanim::HAnimate::Status::Finished;

}


@Sunrisepeak
Copy link
Owner Author

move

```cpp
static bool move() {
    static auto move = hanim::move(50, 200, 350, 200, 30);
    static auto hobj = hanim::object::opengl::Button();
hanim::HEngine::PlayFrame(move, hobj);

return move.status() == hanim::HAnimate::Status::Finished;

}

</code>
</pre>
      </td>
    </tr>
  </table>
</p>

@Sunrisepeak
Copy link
Owner Author

Sunrisepeak commented Aug 28, 2023

move

static bool move() {
    static auto move = hanim::move(50, 200, 350, 200, 30);
    static auto hobj = hanim::object::opengl::Button();
    hanim::HEngine::PlayFrame(move, hobj);
    return move.status() == hanim::HAnimate::Status::Finished;
}
        

@Sunrisepeak
Copy link
Owner Author

move

static bool move() {
    static auto move = hanim::move(50, 200, 350, 200, 30);
    static auto hobj = hanim::object::opengl::Button();
    hanim::HEngine::PlayFrame(move, hobj);
    return move.status() == hanim::HAnimate::Status::Finished;
}
        

@Sunrisepeak
Copy link
Owner Author

hello-pixels_24-07-15_320x240_60_compressed.ha.mp4

@Sunrisepeak
Copy link
Owner Author

PxielPanel

PixelPanel0-Create_24-07-25_854x480_60_compressed ha

PixelPanel1-DrawBorder_24-07-25_854x480_60_compressed ha

PixelPanel2-Shift_24-07-25_854x480_60_compressed ha

PixelPanel3-Rotate_24-07-25_854x480_60_compressed ha

PixelPanel4-MoveTo-Rotate_24-07-25_854x480_60_compressed ha

PixelPanel5-Scale_24-07-25_854x480_60_compressed ha

PixelPanel6-ColorUpdate_24-07-25_854x480_60_compressed ha

PixelPanel7-Opacity-Rotate_24-07-25_854x480_60_compressed ha

@Sunrisepeak
Copy link
Owner Author

Sunrisepeak commented Jul 24, 2024

PixelPanel0-Create_24-07-25_854x480_60_compressed ha

PixelPanel1-DrawBorder_24-07-25_854x480_60_compressed ha

PixelPanel2-Shift_24-07-25_854x480_60_compressed ha

PixelPanel4-MoveTo-Rotate_24-07-25_854x480_60_compressed ha

PixelPanel4-Rotate_24-07-25_854x480_60_compressed ha

PixelPanel5-Scale_24-07-25_854x480_60_compressed ha

PixelPanel6-ColorUpdate_24-07-25_854x480_60_compressed ha

PixelPanel7-Opacity-Rotate_24-07-25_854x480_60_compressed ha

@Sunrisepeak Sunrisepeak added documentation Improvements or additions to documentation good first issue Good for newcomers labels Jul 25, 2024
@Sunrisepeak
Copy link
Owner Author

基础动画

0-FadeIn_24-07-25_854x480_60_compressed ha

1-Shift_24-07-25_854x480_60_compressed ha

2-MoveTo_24-07-26_854x480_60_compressed ha

3-Rotate_24-07-25_854x480_60_compressed ha

4-Scale_24-07-25_854x480_60_compressed ha

5-ColorUpdate_24-07-25_854x480_60_compressed ha

6-Opacity_24-07-25_854x480_60_compressed ha

7-FadeOut_24-07-25_854x480_60_compressed ha

8-Create_24-07-25_854x480_60_compressed ha

9-DrawBorder_24-07-25_854x480_60_compressed ha

10-Transform_24-07-25_854x480_60_compressed ha

@sky-littlestar
Copy link

非常棒的动画效果,加油加油!

@Sunrisepeak
Copy link
Owner Author

Sunrisepeak commented Sep 13, 2024

d2learn logo 动画

d2learn-logo_24-09-14_854x480_60_compressed.ha.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants