Skip to content

Commit

Permalink
added readme examples
Browse files Browse the repository at this point in the history
  • Loading branch information
blackspike committed Feb 1, 2021
1 parent dce837b commit 8744a19
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,23 @@

A toy API to convert any bitmap image in to RBA colours!

## Install & run
## Demo

```
npm install
```
View a demo at [https://pixel-artist.herokuapp.com](https://pixel-artist.herokuapp.com)

Or try it with a random unsplash image

[https://pixel-artist.herokuapp.com/api/?cols=32&https://source.unsplash.com/random](https://pixel-artist.herokuapp.com/api/?cols=32&url=https://source.unsplash.com/520x640/?portrait)

## Install & run

```
node index.js
npm install && node index.js
```

## Usage

Reach the API at
Reach the hosted API at

```
https://pixel-artist.herokuapp.com/api/?cols=x&url=y
Expand All @@ -38,7 +42,8 @@ Fewer columns, the faster! Returns a multidimensional array and some meta data:
"rgb(162, 152, 149)",
"rgb(150, 158, 173)",
"rgb(123, 137, 152)"
],...
],
...
],
"meta":{
"cols":4,
Expand Down

0 comments on commit 8744a19

Please sign in to comment.