Type to search...

Color

color

Providing the color of, e.g.: the frame, or the color of the fonts.

Aliases

  • co

Parameters

  • in CSS/HTML the usual # + hexadecimal values, but without the starting character of #: in RGB, RGBA, RRGGBB, RRGGBBAA formats
  • Specified colors

Limitations

  • This transformation does not have any limitations.

Dependencies

  • This transformation does not have any dependencies.

Examples

See the following examples about the possible ways of usage.

Adds green border to the image

w:300_bo:10_co:green
use shardimage\shardimagephp\factories\Transformation;
$transformations = (new Transformation())->width(300)->border(10)->color('green');

Adds magenta border to the image

w:300_bo:10_co:f3a
use shardimage\shardimagephp\factories\Transformation;
$transformations = (new Transformation())->width(300)->border(10)->color('f3a');

Adds grey border to the image

w:300_bo:10_co:445566
use shardimage\shardimagephp\factories\Transformation;
$transformations = (new Transformation())->width(300)->border(10)->color('445566');

Adds lighter grey border to the image

w:300_bo:10_co:445566aa
use shardimage\shardimagephp\factories\Transformation;
$transformations = (new Transformation())->width(300)->border(10)->color('445566aa');
Table of contents