Color API is a simple FastAPI application that generates colored PNG images based on specified dimensions and a predefined environment-specified color.
COLOR: Environment variable to set the color of the generated image. Accepts CSS color names or hex codes. Default is grey if not set or invalid.
-
GET /api/v1/pngorGET /: Generate a PNG imageQuery parameters:
h: Height of the image (default: 32, max: 1024)w: Width of the image (default: 32, max: 1024)