~mendelmaleh/dummy

98542fc1ba23ad80c0a91b799d84160a8a20ae15 — Mendel E 1 year, 5 months ago f39b2eb
Update api.md
1 files changed, 12 insertions(+), 15 deletions(-)

M api.md
M api.md => api.md +12 -15
@@ 38,8 38,19 @@ height	int	100
Set the width and height of the image. If only `width` is passed, `height` will
be set to its value.

TODO: If only `height` is passed, set `width` to its 16:9 equivalent (ie `width = height / 9 * 16`).
```
pattern	string	"plain"
```

Set the pattern for the image drawing. The different patterns are:

- `plain`: just a plain, one color, background.
- `diagonal`: split diagonally, two colors.

TODO:

- `vertical`: split vertically, two colors.
- `horizontal`: split horizontally, two colors.

```
color	[]string	[]string{"#242933", "#eceff4"}


@@ 51,7 62,6 @@ case-sensitive, hashes (`#`) at the start will be ignored, and `alpha` will be
set to `255` (ie `ff`) if not passed.  You can pass more than one color, and
they will be used as needed.


```
desc	string	""
```


@@ 61,19 71,6 @@ _This option is only available on the `/web/` endpoint._
Set the `og:description` content.


## Other options (WIP)

```
pattern	string	"plain"
```

Set the pattern for the image drawing. The different patterns are:

- `plain`: just a plain, one color, background.
- `diagonal`: split diagonally, two colors.
- `vertical`: split vertically, two colors.
- `horizontal`: split horizontally, two colors.

## Text options (WIP)

```