Skip to content

A server who generate gradient image with api (for sample image like https://dummyimage.com/ but with some gradient)

Notifications You must be signed in to change notification settings

Nobodyno-boop/pipoucolor

Repository files navigation

PipouColors v1.0.102

Clowned Space Github CodeFactor

Your beautifull gradient placeholder !

Getting started

fastify server is served at port 3000 by default, you can change it in the .env file. You can check other variable

You want to start a PipouColors server ? Follow this instruction.

Before check if you have already install all tools with need

git clone https://github.com/Nobodyno-boop/pipoucolor

Don't forget to enter in the folder and install node libraries.

You can run the server and enjoy

npm run start

You can also edit the server with hot-reload

npm run dev

Environement variable

name type default
PORT number 3000
HOST string 0.0.0.0
RATELIMIT number 150

Required

name version infos
nodejs >=6.0.0 tested with v16.13.2
python v3.7, v3.8, v3.9, or v3.10 see here why

Samples routes

route used url result
api/v1/:width/ api/v1/50/ api
api/v1/:width/:height/ api/v1/50/70/ api
api/v1/:width/:height/:colors/ api/v1/50/50/E36387,FCFFA6/ api
api/v1/:width/:height/:colors/:angle/ api/v1/50/50/E36387,FCFFA6/180/ api
api/v1/:width/:height/:colors/ api/v1/50/50/FA8BFF,2BD2FF,2BFF88/ api
api/v1/:width/:height/:colors/:angle/ api/v1/50/50/FA8BFF,2BD2FF,2BFF88/90/ api

Routes properties

name type option
height number min: 1, max: 1000
width number min: 1, max: 1000
colors string min: 12, max: 60 (10 hex color !)
angle number min: 0, max: 360

Thanks to cssgradient.io

About

A server who generate gradient image with api (for sample image like https://dummyimage.com/ but with some gradient)

Topics

Resources

Stars

Watchers

Forks