Paint Program in Python/Pygame (with Source Code)

Veröffentlicht am: 03 September 2019
auf dem Kanal: Burak Unutmaz
12,230
273

Pyint_Pixel-Painter, My second PyGame project.
Pyint by Burak

A 64x64 Pixel art drawing program made in Python, Pygame.
A variety of colors, 126 colors to be specific. First palette has 96 and the second one has 30.
The tools:
Brush tool:
Normal brush tool to draw and paint with adjustable size
Eraser tool:
Normal eraser tool to erase with adjustable eraser size
-- If you keep pressing right click, as you draw, your selected tool becomes the eraser.
Fill tool:
Fills any empty closed space with your selected color. Using the recursive flood fill algorithm.
Color Picker tool (Eyedropper):
Lets you pick the color in the canvas from a single pixel.

Added a "dragon.txt" and "dragon.png", one of my artworks in my program. To test that everything worked fine.

Hotkeys
Hotkeys:
CTRL + Z : Undoes your last (and only last) adjustment.
CTRL + Space : Deletes your layer (Not undoable)
CTRL + S : Saves your work. Same as "save as".
B : Select brush tool.
E : Select eraser tool.
G : Select fill tool.
I : Select color picker / eyedropper tool.
Right Click : Your selected tool becomes the eraser -until you release the button-.
1 and 2 : Change between the color palettes faster.

Requirements
Modules:
Python 3.x
Pygame
Tkinter


Source Code: https://github.com/Burakcoli/Pyint_Pi...


Kevin MacLeod sanatçısının Light Thought var 4 adlı şarkısı, Creative Commons Attribution lisansı (https://creativecommons.org/licenses/...) altında lisanslıdır.
Sanatçı: http://incompetech.com/


Auf dieser Seite können Sie das Online-Video Paint Program in Python/Pygame (with Source Code) mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Burak Unutmaz 03 September 2019 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 12,230 Mal angesehen und es wurde von 273 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!