Giter Site home page Giter Site logo

pixelpage-drawing's Introduction

Python script to draw in pixelpage.deno.dev

draw.py script sends requests to paint pixels in pixelpage.deno.dev

How to run

Mac / Linux

  1. Install virtualenv
python3 -m pip install virtualenv
  1. Activate environment and run app.py
source venv/bin/activate
python3 app.py

Windows

  1. Install virtualenv
python -m pip install virtualenv
  1. Activate environment and run app.py
venv/Scripts/activate
python app.py

How to draw

The tool used to draw is https://es.pixilart.com/

Before starting, we need to configure the tool.

Import colors palette

First we need to import the colors supported by the pixelpage.

  1. Create a new palette

2. Import colors clicking on the next button and add the next colors `ff0000,00ff00,0000ff,ffff00,00ffff,ff00ff,ffffff,000000`
  1. We're ready with the colors of the pixelpage

Set canvas dimension

  1. Edit canvas with the tool or from the bar options.

2. Set 16x16 and enable the checkmark if you already imported the image to resize it.

Import image

In this example we will use the
flower_example.jpg

  1. Import the 16x16 image. if the image is not 16x16 it will be automatically resized.

2. Apply the color palette to replace the colors with similar supported colors.
3. Verify and manually edit the pixels if required. In this case some yellow pixels were missing.

Download the pixel art

When we are ready, click on the download option on the top bar and save the image as png.

pixelpage-drawing's People

Contributors

chermdev avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.