Первый движок анимации

This commit is contained in:
2025-11-17 15:43:33 +03:00
parent 5ac43bb236
commit 92f4632803
5 changed files with 174 additions and 25 deletions

View File

@@ -0,0 +1,9 @@
#ifndef FIGURE_DRAW_H
#define FIGURE_ANFIGURE_DRAW_HIMATE_H
#include "window.h"
/* Нарисовать фигуру на холсте */
void figure_draw(struct window_draw_info* draw_info, float border_thikness, uint32_t border_color, uint32_t fill_color);
#endif

View File

@@ -19,6 +19,10 @@ struct figure_animation_info {
float angular_velocity;
float speed;
/* Radius of the figure normalized for window width (0..1)
* This field is used by animation code to check collisions
* with the left/right/top/bottom borders. */
float radius;
};
#endif