├── coord_gen
├── requirements.txt
├── README.md
└── coords.py
├── wallpaper_builder
├── requirements.txt
└── gen_wallpaper.py
├── artwork_builder
├── requirements.txt
├── overlay_raw.png
├── build_tux_only.json
├── build_allies.json
├── build_all.json
├── fetch_cosmere.py
└── gen_overlay_from_sources.py
├── overlay
├── requirements.txt
├── example.png
├── unexplode_overlay.py
├── create_mask.py
├── explode_overlay.py
├── README.md
├── userscript.user.js
└── userscript-blurfix.user.js
├── .gitignore
├── artwork
├── tux
│ ├── tux.png
│ └── positions.json
├── allies
│ ├── a2b2.png
│ ├── gecs.png
│ ├── mit.png
│ ├── nerv.png
│ ├── twrp.png
│ ├── asoul.png
│ ├── chatot.png
│ ├── cosmere.png
│ ├── croatia.png
│ ├── fancade.png
│ ├── fancade_2.png
│ ├── unixporn.png
│ └── positions.json
└── tux_button
│ ├── tux_button.png
│ └── positions.json
├── priority.txt
├── .github
└── workflows
│ └── main.yml
├── README.md
├── rplace_sql_db.md
└── LICENSE
/coord_gen/requirements.txt:
--------------------------------------------------------------------------------
1 | Pillow
2 |
--------------------------------------------------------------------------------
/wallpaper_builder/requirements.txt:
--------------------------------------------------------------------------------
1 | Pillow
--------------------------------------------------------------------------------
/artwork_builder/requirements.txt:
--------------------------------------------------------------------------------
1 | Pillow
2 | requests
3 |
--------------------------------------------------------------------------------
/overlay/requirements.txt:
--------------------------------------------------------------------------------
1 | Pillow
2 | requests
3 | matplotlib
4 | numpy
5 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | *.kra
2 | *.jpg
3 | *.xcf
4 | *-aman9das.png
5 | .vscode/*
6 | .idea/*
7 | .build/*
--------------------------------------------------------------------------------
/artwork/tux/tux.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/r-PlaceTux/place_tux/HEAD/artwork/tux/tux.png
--------------------------------------------------------------------------------
/overlay/example.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/r-PlaceTux/place_tux/HEAD/overlay/example.png
--------------------------------------------------------------------------------
/artwork/allies/a2b2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/r-PlaceTux/place_tux/HEAD/artwork/allies/a2b2.png
--------------------------------------------------------------------------------
/artwork/allies/gecs.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/r-PlaceTux/place_tux/HEAD/artwork/allies/gecs.png
--------------------------------------------------------------------------------
/artwork/allies/mit.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/r-PlaceTux/place_tux/HEAD/artwork/allies/mit.png
--------------------------------------------------------------------------------
/artwork/allies/nerv.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/r-PlaceTux/place_tux/HEAD/artwork/allies/nerv.png
--------------------------------------------------------------------------------
/artwork/allies/twrp.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/r-PlaceTux/place_tux/HEAD/artwork/allies/twrp.png
--------------------------------------------------------------------------------
/priority.txt:
--------------------------------------------------------------------------------
1 | DISABLED: https://r-placetux.github.io/place_tux/artwork/tux_button/tux_button.png !!
2 |
--------------------------------------------------------------------------------
/artwork/allies/asoul.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/r-PlaceTux/place_tux/HEAD/artwork/allies/asoul.png
--------------------------------------------------------------------------------
/artwork/allies/chatot.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/r-PlaceTux/place_tux/HEAD/artwork/allies/chatot.png
--------------------------------------------------------------------------------
/artwork/allies/cosmere.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/r-PlaceTux/place_tux/HEAD/artwork/allies/cosmere.png
--------------------------------------------------------------------------------
/artwork/allies/croatia.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/r-PlaceTux/place_tux/HEAD/artwork/allies/croatia.png
--------------------------------------------------------------------------------
/artwork/allies/fancade.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/r-PlaceTux/place_tux/HEAD/artwork/allies/fancade.png
--------------------------------------------------------------------------------
/artwork/allies/fancade_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/r-PlaceTux/place_tux/HEAD/artwork/allies/fancade_2.png
--------------------------------------------------------------------------------
/artwork/allies/unixporn.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/r-PlaceTux/place_tux/HEAD/artwork/allies/unixporn.png
--------------------------------------------------------------------------------
/artwork_builder/overlay_raw.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/r-PlaceTux/place_tux/HEAD/artwork_builder/overlay_raw.png
--------------------------------------------------------------------------------
/artwork/tux/positions.json:
--------------------------------------------------------------------------------
1 | [
2 | {
3 | "img_url": "tux.png",
4 | "x0": 20,
5 | "y0": 679
6 | }
7 | ]
8 |
--------------------------------------------------------------------------------
/artwork/tux_button/tux_button.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/r-PlaceTux/place_tux/HEAD/artwork/tux_button/tux_button.png
--------------------------------------------------------------------------------
/artwork/tux_button/positions.json:
--------------------------------------------------------------------------------
1 | [
2 | {
3 | "img_url": "tux_button.png",
4 | "x0": 568,
5 | "y0": 1971
6 | }
7 | ]
8 |
--------------------------------------------------------------------------------
/artwork_builder/build_tux_only.json:
--------------------------------------------------------------------------------
1 | {
2 | "output_fname": "../.build/tux_combined_tux.png",
3 | "width": 2000,
4 | "height": 2000,
5 | "artwork_groups": ["tux"]
6 | }
7 |
--------------------------------------------------------------------------------
/artwork_builder/build_allies.json:
--------------------------------------------------------------------------------
1 | {
2 | "output_fname": "../.build/tux_combined_allies.png",
3 | "width": 2000,
4 | "height": 2000,
5 | "artwork_groups": ["allies"]
6 | }
7 |
--------------------------------------------------------------------------------
/artwork_builder/build_all.json:
--------------------------------------------------------------------------------
1 | {
2 | "output_fname": "../.build/tux_combined_all.png",
3 | "width": 2000,
4 | "height": 2000,
5 | "artwork_groups": ["tux", "tux_button", "allies"]
6 | }
7 |
--------------------------------------------------------------------------------
/overlay/unexplode_overlay.py:
--------------------------------------------------------------------------------
1 | #!/bin/env python3
2 |
3 | import matplotlib.pyplot as plt
4 | import numpy
5 |
6 | overlay = plt.imread("tuxoverlay.png")
7 |
8 | raw = overlay[1::3,1::3,:]
9 |
10 | plt.imsave("overlay_raw.png", raw, dpi=100, format="png")
--------------------------------------------------------------------------------
/wallpaper_builder/gen_wallpaper.py:
--------------------------------------------------------------------------------
1 | #!/bin/env python3
2 |
3 | from PIL import Image
4 | import sys
5 |
6 | in_fname = sys.argv[1]
7 | out_fname = sys.argv[2]
8 |
9 | with Image.open(in_fname) as tux_image:
10 | tux_image.resize((tux_image.width * 100, tux_image.height * 100), resample=Image.NEAREST).save(out_fname)
11 |
--------------------------------------------------------------------------------
/overlay/create_mask.py:
--------------------------------------------------------------------------------
1 | #!/bin/env python3
2 |
3 | import matplotlib.pyplot as plt
4 | import numpy
5 | import sys
6 |
7 | raw_fname = sys.argv[1]
8 | out_fname = sys.argv[2]
9 |
10 | img = plt.imread(raw_fname)
11 |
12 | mask = numpy.invert(numpy.all(img==0, axis=-1))
13 | img[mask] = (0,0,0,1)
14 |
15 | plt.imsave(out_fname, img, dpi=100, format="png")
--------------------------------------------------------------------------------
/coord_gen/README.md:
--------------------------------------------------------------------------------
1 | # Coord Gen
2 |
3 | This will take an input tux and a placement and generate and image with respective coordinates. Useful for folks that don't want to use the overlay.
4 |
5 | ### Program usage
6 |
7 | The program can be used quite easily using the follow arguments
8 |
9 | ```sh
10 | python coords.py -i -o