#include <smk/Color.hpp>
#include <smk/Shape.hpp>
#include <smk/Window.hpp>
int main() {
window.ExecuteMainLoop([&] {
window.PoolEvents();
float y = 0.5f + 0.4f * sin(window.time());
{
{10, 10},
{630 * y, 10},
{10, 480 * y},
{630, 480 * y},
},
50);
window.Draw(bezier_path_background);
window.Draw(bezier_path_foreground);
window.Display();
});
return EXIT_SUCCESS;
}
static Transformable Path(const std::vector< glm::vec2 > &points, float thickness)
Build a path of a given |thickness| along a sequence of connected lines. @params points The sequence ...
static std::vector< glm::vec2 > Bezier(const std::vector< glm::vec2 > &point, size_t subdivision)
Return a bezier curve.
A window. You can draw objects on the window.
const glm::vec4 Black
Black.
const glm::vec4 Yellow
Yellow.
glm::vec4 RGB(float red, float green, float blue)
Build an opaque color from its RGB components components.