Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Pixel Art Generator Script Added#2637

Merged
1e9abhi1e10 merged 2 commits intoavinashkranjan:masteravinashkranjan/Amazing-Python-Scripts:masterfrom
andoriyaprashant:branch27andoriyaprashant/Amazing-Python-Scripts:branch27Copy head branch name to clipboard
Aug 8, 2023
Merged

Pixel Art Generator Script Added#2637
1e9abhi1e10 merged 2 commits intoavinashkranjan:masteravinashkranjan/Amazing-Python-Scripts:masterfrom
andoriyaprashant:branch27andoriyaprashant/Amazing-Python-Scripts:branch27Copy head branch name to clipboard

Conversation

@andoriyaprashant
Copy link
Contributor

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

  • New feature

Checklist:

  • My code follows the style guidelines(Clean Code) of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have created a helpful and easy to understand README.md
  • My documentation follows Template for README.md
  • I have added the project meta data in the PR template.
  • I have created the requirements.txt file if needed.

Project Metadata

Category:

  • Calculators
  • AI/ML
  • Scrappers
  • Social_Media
  • PDF
  • Image_Processing
  • Video_Processing
  • Games
  • Networking
  • OS_Utilities
  • Automation
  • Cryptography
  • Computer_Vision
  • Fun
  • Others

Title: Pixel Art Generator

Folder: Pixel Art Generator

Requirements:

  • turtle
  • tkinter

Script: pixel_art_generator.py

Contributor: andoriyaprashant

Description: Pixel Art Generator Script Added

@1e9abhi1e10 1e9abhi1e10 added level3 New features, Major bug fixing gssoc23 Issues created for/by the GirlScript Summer of Code'23 Participants labels Aug 8, 2023
@1e9abhi1e10 1e9abhi1e10 merged commit a9dee15 into avinashkranjan:master Aug 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gssoc23 Issues created for/by the GirlScript Summer of Code'23 Participants level3 New features, Major bug fixing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Script]: Pixel Art Generator

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.