hp
toc

Gradient Drawer

2015-07-05, post № 44

art, programming, Pygame, Python, #around the center, #art, #artistic, #background, #black, #bright, #color, #color change, #colorful, #colors, #creating, #different colors, #draw, #drawing, #fancy, #gradient, #mouse, #neat, #pictures, #saving

This is more of an artistic program. By left-clicking you set a fix point and define a random color. Where you then move your mouse, the program will draw 𝟣𝟢𝟢 circles in between the fix point and the cursor position. By right-clicking you save those 𝟣𝟢𝟢 circles on the canvas. Holding the right mouse button is possible.

Controls

  • Left clicking sets or removes a fix point,
  • Right clicking saves current circles on canvas,
  • ‘s’ saves current canvas,
  • ‘c’ clears current canvas.
gradient-drawer-01.png
gradient-drawer-08.png
gradient-drawer-13.png
gradient-drawer-21.png
gradient-drawer-18.png
Source code: gradient-drawer.py
Jonathan Frech's blog; built 2024/08/31 22:59:44 CEST