Skip to content

ZeedyDF/PixelCanvasBot

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

83 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PixelCanvasBot

This is a functional bot for pixelcanvas.io.

Why I am doing this?

Well, I think this is a fun game and I wanted learn another program language and challenge myself.

What you can do with this?

Well, you can draw some image and try replicate in pixelcanvas.io. You can combine with your friends or clan, whatever for combine forces to draw more quickly or defend your 'territory'.

I can use any image and this bot will draw for me?

YES READY. You can use any image. Converted to the nearest PixelCanvas.io color for every pixel

Wherw standart color palete ?

  • WHITE: (255, 255, 255),
  • GAINSBORO: (228, 228, 228)
  • GREY: (136, 136, 136)
  • NERO: (34, 34, 34)
  • CARNATION_PINK: (255, 167, 209)
  • RED: (229, 0, 0)
  • ORANGE: (229, 149, 0)
  • BROWN: (160, 106, 66)
  • YELLOW: (229, 217, 0)
  • CONIFER: (148, 224, 68)
  • GREEN: (2, 190, 1)
  • DARK_TURQUOISE: (0, 211, 221)
  • PACIFIC_BLUE: (0, 131, 199)
  • BLUE: (0, 0, 234)
  • VIOLET: (207, 110, 228)
  • PURPLE' : (130, 0, 128)

How you can use this?

Well, first you need Python 2.7 and install this:

  • pip install websocket-client
  • pip install Pillow
  • pip install requests

For windows

if you needs pip save from https://bootstrap.pypa.io/get-pip.py

  • python get-pip.py

after pip installation

  • python -m pip install websocket-client
  • python -m pip install Pillow
  • python -m pip install requests

After you can execute the code like this:

  • ./main.py -i image.png -f $FINGERPRINT$ -x 0 -y 0

What is each parameter?

Need to help?
Try it 'python ./main.py --help' maybe more usefull.
  • -i or --image it is the image you want to draw.
  • -f or --fingerprint it is your unique code. You can get in the requisition when you open Chrome DevTools.
  • -x or --start_x it is the point X axis what you want to begin. Ex: 156
  • -y or --start_y it is the point y axis what you want to begin. Ex: -4000
  • --colors_ignored Colors of your image that will be ignored. Ex: 0 1 2 3 8 15
  • --draw_strategy Optional draw strategy. Avaiable strategy list : linear : line by line paint, randomize : pixel paint random coordinates, status : not painted only list paint status).: Default: randomize
  • --mode_defensive is the mode who put the program mode deamon. Default: True
  • --proxy_url it is you proxy. Ex: proxy.yourcompany.com:8080
  • --proxy_auth it is your credentials for the proxy. Ex: username:password

About

A bot to pixelcanvas.io

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%