- Full name:
\ColorThief\VBox
public int $r1
public int $r2
public int $g1
public int $g2
public int $b1
public int $b2
public array<int,int> $histo
private int $volume
private bool $volume_set
private int $count
private bool $count_set
private array $avg
private bool $avg_set
VBox constructor.
public __construct(int $r1, int $r2, int $g1, int $g2, int $b1, int $b2, array<int,int> $histo): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$r1 |
int | |
$r2 |
int | |
$g1 |
int | |
$g2 |
int | |
$b1 |
int | |
$b2 |
int | |
$histo |
array<int,int> |
public volume(bool $force = false): int
Parameters:
Parameter | Type | Description |
---|---|---|
$force |
bool |
public count(bool $force = false): int
Parameters:
Parameter | Type | Description |
---|---|---|
$force |
bool |
public copy(): self
Calculates the average color represented by this VBox.
public avg(bool $force = false): array
Parameters:
Parameter | Type | Description |
---|---|---|
$force |
bool |
public contains(array $rgbValue, int $rshift = ColorThief::RSHIFT): bool
Parameters:
Parameter | Type | Description |
---|---|---|
$rgbValue |
array | |
$rshift |
int |
Determines the longest axis.
public longestAxis(): string