Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement