Pixel Art Generator Script Added#2637
Merged
1e9abhi1e10 merged 2 commits intoavinashkranjan:masteravinashkranjan/Amazing-Python-Scripts:masterfrom Aug 8, 2023
andoriyaprashant:branch27andoriyaprashant/Amazing-Python-Scripts:branch27Copy head branch name to clipboard
Merged
Pixel Art Generator Script Added#26371e9abhi1e10 merged 2 commits intoavinashkranjan:masteravinashkranjan/Amazing-Python-Scripts:masterfrom andoriyaprashant:branch27andoriyaprashant/Amazing-Python-Scripts:branch27Copy head branch name to clipboard
1e9abhi1e10 merged 2 commits intoavinashkranjan:masteravinashkranjan/Amazing-Python-Scripts:masterfrom
andoriyaprashant:branch27andoriyaprashant/Amazing-Python-Scripts:branch27Copy head branch name to clipboard
Conversation
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
The Pixel Art Generator is a Python script that allows users to create pixel art using the turtle graphics module. It provides a user-friendly interface for drawing various shapes with customizable colors, sizes, and patterns on a canvas. The script is designed to be interactive and easy to use, making it accessible to both beginners and experienced Python programmers.
Here's a brief overview of the main features and functionality of the script:
Drawing Patterns: The script offers a selection of drawing patterns, including square, circle, triangle, diamond, heart, polygon (with customizable sides), line, star (with customizable points), and spiral (with customizable loops). Users can choose from these patterns to create their pixel art.
Color Selection: Users can pick colors for their drawings using the colorchooser dialog. The colorchooser allows them to visually select any color they want to use in their pixel art.
Size and Thickness: The script allows users to adjust the size of the shapes they draw. The size can be set within the range of 5 to 50 pixels. For lines, users can also specify the thickness in the range of 1 to 10 pixels.
Fill Shapes (Optional): For certain patterns like squares, circles, triangles, diamonds, hearts, polygons, and stars, users have the option to fill the shapes with colors, creating solid shapes with vibrant colors.
Pen Style: Users can choose the pen style for drawing lines. The available pen styles are "solid," "dashed," and "dotted," each offering a distinct appearance for lines.
Background Color: The script allows users to change the background color of the canvas, providing a customizable canvas for their pixel art creations.
Clear Canvas: Users can clear the canvas at any time to start a new drawing or try out different designs.
Save Pixel Art: Once users have created their pixel art, they can save it as a PNG image file. The script prompts users to choose a file path where the pixel art will be saved.
The script utilizes the turtle graphics module, a part of the Python standard library, to provide a simple graphical interface for drawing. It uses tkinter for colorchooser and simpledialog to obtain user inputs for colors, sizes, sides, points, loops, thickness, and pen style.
Fixes #2636
Type of change
Checklist:
README.mdTemplate for README.mdrequirements.txtfile if needed.Project Metadata
Category:
Title: Pixel Art Generator
Folder: Pixel Art Generator
Requirements:
Script: pixel_art_generator.py
Contributor: andoriyaprashant
Description: Pixel Art Generator Script Added