This repository has been archived on 2024-07-28. You can view files and clone it, but cannot push or open issues or pull requests.
2023-11-27 12:04:00 +00:00
|
|
|
# `ppppcg`
|
|
|
|
|
|
|
|
A [PrePostPrint](https://prepostprint.org) inspired political compass generator with SVG output.
|
|
|
|
|
|
|
|
Why? You may find some answers on [here](http://blog.osp.kitchen) or [there](https://pad.vvvvvvaria.org/PPP-local-meetup).
|
|
|
|
|
|
|
|
<p align="center">
|
|
|
|
<img src="./ppppcg.png" />
|
|
|
|
</p>
|
|
|
|
|
|
|
|
## Install
|
|
|
|
|
|
|
|
### Linux
|
|
|
|
|
|
|
|
```
|
|
|
|
curl https://git.coopcloud.tech/decentral1se/ppppcg/raw/branch/main/dist/ppppcg_linux_amd64_v1/ppppcg -o ppppcg
|
|
|
|
chmod +x ppppcg
|
|
|
|
```
|
|
|
|
|
|
|
|
### MacOS
|
|
|
|
|
|
|
|
```
|
|
|
|
curl https://git.coopcloud.tech/decentral1se/ppppcg/raw/branch/main/dist/ppppcg_darwin_amd64_v1/ppppcg -o ppppcg
|
|
|
|
chmod +x ppppcg
|
|
|
|
```
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
|
|
|
Wire up a config file (`ppppcg.yml`).
|
|
|
|
|
|
|
|
```yaml
|
|
|
|
width: 500
|
|
|
|
height: 500
|
|
|
|
|
|
|
|
axis:
|
|
|
|
top: W3C
|
|
|
|
right: Industry
|
|
|
|
bottom: Custom hacks
|
|
|
|
left: Punk
|
|
|
|
|
|
|
|
points:
|
|
|
|
- {name: "???", x: 50, y: 450}
|
|
|
|
```
|
|
|
|
|
|
|
|
And generate the SVG like so.
|
|
|
|
|
|
|
|
```
|
|
|
|
./ppppcg
|
|
|
|
```
|
|
|
|
|
|
|
|
You can pipe it to a graphical program or save it to file.
|
|
|
|
|
|
|
|
```
|
|
|
|
./ppppcg | display # X11 viewer
|
|
|
|
./ppppcg > pc.svg # to file
|
|
|
|
```
|
|
|
|
|
2023-12-03 14:39:37 +00:00
|
|
|
Add some of your own points.
|
|
|
|
|
|
|
|
```yaml
|
|
|
|
points:
|
|
|
|
- {name: "???", x: 50, y: 450}
|
|
|
|
- {name: moar, x: 50, y: 450}
|
|
|
|
# and so on ...
|
|
|
|
```
|
|
|
|
|
|
|
|
The `(0, 0)` coordinates are the top leftmost corner of the canvas.
|
|
|
|
|
2023-11-27 12:04:00 +00:00
|
|
|
👋
|
|
|
|
|
|
|
|
## License
|
|
|
|
|
|
|
|
<a href="https://git.coopcloud.tech/decentral1se/rss-butt-plug/src/branch/main/LICENSE">
|
|
|
|
<img src="https://www.gnu.org/graphics/gplv3-with-text-136x68.png" />
|
|
|
|
</a>
|
|
|
|
|
|
|
|
## ACK
|
|
|
|
|
|
|
|
* [PrePostPrint](https://prepostprint.org)
|
|
|
|
* [`svgo`](https://github.com/ajstarks/svgo)
|