Documentation

Color
in package

Table of Contents

fromHexToInt()  : int
fromIntToHex()  : string
fromIntToRgb()  : array<string|int, mixed>
fromRgbToInt()  : int

Methods

fromHexToInt()

public static fromHexToInt(string $color) : int
Parameters
$color : string
Return values
int

fromIntToHex()

public static fromIntToHex(int $color[, bool $prependHash = true ]) : string
Parameters
$color : int
$prependHash : bool = true

= true

Return values
string

fromIntToRgb()

public static fromIntToRgb(int $color) : array<string|int, mixed>
Parameters
$color : int
Return values
array<string|int, mixed>

fromRgbToInt()

public static fromRgbToInt(array<string|int, mixed> $components) : int
Parameters
$components : array<string|int, mixed>
Return values
int

Search results