Skip to content

RGBAColor

Mistralys edited this page Jan 18, 2022 · 14 revisions

This utility class is used to hold information on an RGB based color, with optional alpha channel.

Usage

Supported color value ranges

  • 8-Bit integer: 0-255 (Standard color values)
  • 7-Bit integer: 0-127 (PHP GD alpha channel)
  • Float: 0.00-1.00 (CSS opacity)
  • Percent: 0-100 (General purpose)

Color components

  • Red
  • Green
  • Blue
  • Opacity
  • Transparency (inverted opacity)
use AppUtils;

$color = new RGBColor

New here?

Have a look at the overview for a list of all helper classes available in the package.

Table of contents

Find the current page in the collapsible "Pages" list above, and expand the page, to view a table of contents.

Clone this wiki locally