Overview
Sources
Libraries
Images API

Text Color text-color

Specify the color to be used when rendering text.

Values

By default text color value is black.

For more information on how to specify colors visit the color values section.

Examples

Not specifying a text-color value will result in rendering text with black color:

GET
https://assets.imglab-cdn.net/particles-02.jpeg
Rendering text over image with default black text-color.
x px

In this example we specify a named color using text-color=yellow, resulting in text being rendered with yellow color:

GET
https://assets.imglab-cdn.net/particles.jpeg?text-color=yellow
Rendering text over image with text-color parameter using yellow as value.
x px

We use a short hexadecimal white color value FFF with text-color=FFF:

GET
https://assets.imglab-cdn.net/particles.jpeg?text-color=FFF
Rendering text over image with text-color parameter using a hexadecimal color value.
x px

It's also possible to set a color value with alpha. In this case we are specifying a semi-transparent white color with text-color=255,255,255,128:

GET
https://assets.imglab-cdn.net/particles.jpeg?text-color=255%2C255%2C255%2C128
Rendering text over image with text-color parameter using an RGBA value.
x px