Skip to content

Automate your beautiful (?) creations for Reddit Place!

Notifications You must be signed in to change notification settings

Hagmar/autoplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

autoplace

Automate your beautiful (?) Place creations!

What is this?

Have you struggled coordinating with other redditors to draw your masterpiece(s) on Reddit's Place? This is a way to automatically coordinate everyone to work together on a project!

Project owners can simply draw an image using the Place colors, specify the coordinate at which they want it, and start an autoplace server. Clients can then connect to servers and will automatically be given instructions for which pixels to paint and which color to paint it.

Requirements

These can be installed manually or by running pip3 install -r requirements.txt

How to use

  1. Make sure you fulfill the requirements above

Server

  1. Create an image using the the colors available in Place (See below)
    • If you use any other colors than the Place palette, they will be ignored. This way you can draw pictures which are not rectangular as well.
  2. Start the server with python3 place_server.py <project name> <image> <x> <y>
    • Project name is the name that you give to clients so they can join the project
    • Image is the picture you made in step 2
    • x and y are the coordinates at which to draw the image
    • The server accepts optional arguments for the hosts to allow and the port to listen on
    • Run python3 place_server.py -h for help
  3. Watch the magic happen!

Client

  1. Obtain a host, port and project from Reddit, a friend, your grandma or the local fire department.
  2. Start the client with python3 place_client.py <host> <port> --proj <project name>
  3. The script will prompt you for your Reddit credentials
    • You can also use --user <username> and/or --pass <password> to provide credentials directly
  4. Watch the magic happen!

Colors

These are the valid colors in the Place palette:

  • #ffffff #ffffff
  • #e4e4e4 #e4e4e4
  • #888888 #888888
  • #222222 #222222
  • #ffa7d1 #ffa7d1
  • #e50000 #e50000
  • #e59500 #e59500
  • #a06a42 #a06a42
  • #e5d900 #e5d900
  • #94e044 #94e044
  • #02be01 #02be01
  • #00d3dd #00d3dd
  • #0083c7 #0083c7
  • #0000ea #0000ea
  • #cf6ee4 #cf6ee4
  • #820080 #820080

About

Automate your beautiful (?) creations for Reddit Place!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages