PHP Class ColorThief\VBox

Afficher le fichier Open project: ksubileau/color-thief-php Class Usage Examples

Méthodes publiques

Свойство Type Description
$b1
$b2
$g1
$g2
$histo
$r1
$r2

Méthodes publiques

Méthode Description
__construct ( $r1, $r2, $g1, $g2, $b1, $b2, $histo )
avg ( $force = false )
contains ( array $pixel, $rshift = ColorThief::RSHIFT )
copy ( )
count ( $force = false )
longestAxis ( ) : string Determines the longest axis
volume ( $force = false )

Method Details

__construct() public méthode

public __construct ( $r1, $r2, $g1, $g2, $b1, $b2, $histo )

avg() public méthode

public avg ( $force = false )

contains() public méthode

public contains ( array $pixel, $rshift = ColorThief::RSHIFT )
$pixel array

copy() public méthode

public copy ( )

count() public méthode

public count ( $force = false )

longestAxis() public méthode

Determines the longest axis
public longestAxis ( ) : string
Résultat string

volume() public méthode

public volume ( $force = false )

Property Details

$b1 public_oe property

public $b1

$b2 public_oe property

public $b2

$g1 public_oe property

public $g1

$g2 public_oe property

public $g2

$histo public_oe property

public $histo

$r1 public_oe property

public $r1

$r2 public_oe property

public $r2