DOCUMENTATION

pill-test pill-test pill-test

How to build pills ?

A pill is quick to build, with just one link to retrieve, whether it's a single or double pill.
For people that aren't used to build the urls :
The first param should be after the ? directly, the others can be written in the order you want but need the & symbol before to say to the browser that's another parameter !
Example: https://minipills.pelsy.net/pill?first_param=blabla&second_param=blabla
After this link you just have to add the following URL parameters.

Current endpoints

/PILL SVG
Create a SVG pill
Create a svg pill with the given parameters below.
/PILLNG PNG
Create a PNG pill
Create a png pill with the given parameters below.
/BRAND SVG
Create a SVG logo
Create a logo with custom or base brand color if not specified (params: &l + &lc only).

Spacing caution

String caution BE AWARE
Spacing in url
Spacing in url can be done with spaces, %20 or underscores _.
One underscore is a space.
Two underscores will create a unique underscore.

Pill parameters

After the base link, put the following parameters to build your pill !
FIRST TEXT REQUIRED
Param : 1t : string
First text of the pill. If it's a double pill, then it's the text on the left side. Is required if no logo
Example : 1t=Let's go
FIRST TEXT COLOR OPTIONNAL
Param : 1c : string
First text color. You need to put it without the '#'
Default : ffffff
Example : &1c=ffffff
FIRST BACKGROUND COLOR OPTIONNAL
Param : 1bc : string
First background color. You need to put it without the '#'
Default : 212121
Example : &1bc=212121
SECOND TEXT OPTIONNAL
Param : 2t : string
Second text of the pill.
Example : &2t=on a road
SECOND TEXT COLOR OPTIONNAL
Param : 2c : string
Second text color. You need to put it without the '#'
Default : ffffff
Example : &2c=ffffff
SECOND BACKGROUND COLOR OPTIONNAL
Param : 2bc : string
Second background color. You need to put it without the '#'
Default : a12613
Example : &2bc=a12613
THIRD TEXT OPTIONNAL
Param : 3t : string
Third text of the pill.
Example : &3t=trip
THIRD TEXT COLOR OPTIONNAL
Param : 3c : string
Third text color. You need to put it without the '#'
Default : ffffff
Example : &3c=ffffff
THIRD BACKGROUND COLOR OPTIONNAL
Param : 3bc : string
Third background color. You need to put it without the '#'
Default : 212121
Example : &3bc=212121
PILL SHADOWS OPTIONNAL
Param : s
Enable shadows for logo & pills text
Example : &s
LOGO REQUIRED
Param : l : string
Logo to appear in the first part of the pill. The value must be the logo tag. Is required if no first text
Example : &l=minipills
LOGO COLOR OPTIONNAL
Param : lc : string
Color of the logo.
Default : ffffff
Example : &lc=ffffff
PILL SCALE OPTIONNAL
Param : sc : float
Size of the pill. The maximum is 10.
Default : 1.0
Example : &sc=2
PREMADE PILL REQUIRED
Param : premade : string
Build the premade pill of the given brand, this parameter takes precedence over all others if given.
Example : premade=minipills
Mini Pills by Naorah
pill-test pill-test pill-test
Free Use undefined