PHP Class ColorThief\VBox

Datei anzeigen Open project: ksubileau/color-thief-php Class Usage Examples

Public Properties

Property Type Description
$b1
$b2
$g1
$g2
$histo
$r1
$r2

Public Methods

Method 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 method

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

avg() public method

public avg ( $force = false )

contains() public method

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

copy() public method

public copy ( )

count() public method

public count ( $force = false )

longestAxis() public method

Determines the longest axis
public longestAxis ( ) : string
return string

volume() public method

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