Advertisement
Guest User

Untitled

a guest
Jul 20th, 2017
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. void Main()
  2. {
  3. Image image(Window::Size(), Palette::White);
  4.  
  5. DynamicTexture texture(image);
  6.  
  7. while (System::Update())
  8. {
  9. if (Input::MouseL.pressed)
  10. {
  11. Line(Mouse::PreviousPos(), Mouse::Pos()).overwrite(image, 8, Palette::Orange);
  12. texture.fill(image);
  13. }
  14.  
  15. if (Input::MouseR.clicked) {
  16. Circle(Mouse::Pos(), 10).overwrite(image, Palette::Red);
  17. texture.fill(image);
  18. }
  19. texture.draw();
  20. }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement