PHP Class ColorThief\VBox

Show file 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 property

public $b1

$b2 public property

public $b2

$g1 public property

public $g1

$g2 public property

public $g2

$histo public property

public $histo

$r1 public property

public $r1

$r2 public property

public $r2