Color object.
More...
Color object.
Engine / Object Library
- Author
- CaMykS Team camyk.nosp@m.s.co.nosp@m.ntact.nosp@m.@gma.nosp@m.il.co.nosp@m.m
- Version
- 1.0.0.1
- Date
- Creation: Apr 2024
-
Modification: Jul 2025
- Copyright
- 2024 - 2025 CaMykS Team
- Note
- This program is distributed as is - WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. CColor class.
◆ __construct()
| CColor::__construct |
( |
|
$value = null | ) |
|
Object constructor.
- Parameters
-
◆ __get()
| CColor::__get |
( |
|
$variableName | ) |
|
Makes some variables accessible in read-only
- Parameters
-
- Returns
- mixed
◆ set()
| CColor::set |
( |
|
$value = null | ) |
|
Define color value.
- Parameters
-
- Returns
- boolean success
◆ get_asHexa()
| CColor::get_asHexa |
( |
|
$withHash = true | ) |
|
Return color as hexadecimal value.
- Parameters
-
- Returns
- string
◆ get_asRGB()
| CColor::get_asRGB |
( |
|
$associative = true | ) |
|
Return color as RGB array value.
- Parameters
-
- Returns
- array
◆ get_asRGBA()
| CColor::get_asRGBA |
( |
|
$associative = true | ) |
|
Return color as RGBA array value.
- Parameters
-
- Returns
- array
◆ is_identical()
| CColor::is_identical |
( |
|
$color, |
|
|
|
$checkAlpha = true |
|
) |
| |
Check color is identical to given one.
- Parameters
-
| mixed | $color | |
| boolean | $checkAlpha | |
- Returns
- boolean
◆ is_transparent()
| CColor::is_transparent |
( |
| ) |
|
Check color is transparent.
- Returns
- boolean
◆ $red
| integer CColor::$red = 255 |
|
private |
◆ $green
| integer CColor::$green = 255 |
|
private |
◆ $blue
| integer CColor::$blue = 255 |
|
private |
◆ $alpha
| integer CColor::$alpha = 0 |
|
private |
The documentation for this class was generated from the following file: