Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/acm-uiuc/pixel
Crappy Crowdsourced Drawings
https://github.com/acm-uiuc/pixel
Last synced: about 18 hours ago
JSON representation
Crappy Crowdsourced Drawings
- Host: GitHub
- URL: https://github.com/acm-uiuc/pixel
- Owner: acm-uiuc
- Created: 2018-10-24T01:38:12.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-05-01T20:25:01.000Z (over 1 year ago)
- Last Synced: 2024-04-13T14:19:59.694Z (7 months ago)
- Language: Python
- Homepage:
- Size: 666 KB
- Stars: 6
- Watchers: 13
- Forks: 2
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ACM@UIUC Pixel
A 128x128 crowd-sourced display.
## Examples
curl
```
curl -d "x=0&y=0&color=red" -X POST pixel.acm.illinois.edu
```python
```python
import requests
requests.post('http://pixel.acm.illinois.edu', data={'x': '0', 'y': '0', 'color': '#FF0000'})
```## Endpoints
#### POST /
Renders a pixel with specified pixel color, at the given x and y coordinates.
Request body:
- `x`: 0-127
- `y`: 0-127
- `color`: #FFFFFF or a supported [color string](https://www.tcl.tk/man/tcl8.6/TkCmd/colors.htm).#### GET /small.bmp
Fetches a 128x128 screenshot of the Pixel display.