-
-
Save Hunachi/923534d1795fca90a11ea129e877310c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void Main() | |
{ | |
Image image(Window::Size(), Palette::White); | |
DynamicTexture texture(image); | |
while (System::Update()) | |
{ | |
if (Input::MouseL.pressed) | |
{ | |
Line(Mouse::PreviousPos(), Mouse::Pos()).overwrite(image, 8, Palette::Orange); | |
texture.fill(image); | |
} | |
if (Input::MouseR.clicked) { | |
Circle(Mouse::Pos(), 10).overwrite(image, Palette::Red); | |
texture.fill(image); | |
} | |
texture.draw(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment