diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/main.cpp b/tests/main.cpp index bddfc3f..3595717 100644 --- a/tests/main.cpp +++ b/tests/main.cpp @@ -12,11 +12,11 @@ struct Delegate : public mgl::Window::Delegate { void draw() override { mgl::Rectangle rect(window->get_cursor_position().to_vec2f(), { 100.0f, 500.0f }); - rect.set_color({1.0f, 0.0f, 0.0f, 1.0f}); + rect.set_color({255, 0, 0, 255}); window->draw(rect); mgl::Sprite sprite(*texture, { 100.0f - 10.0f, 0.0f }); - sprite.set_color({1.0f, 1.0f, 1.0f, 0.5f}); + sprite.set_color({255, 255, 255, 128}); window->draw(sprite); mgl::Text text("hello world!\nGood bye world!", { 0.0f, 0.0f }, *font); |