PHP Class RedeyeVentures\GeoPattern\GeoPattern

Show file Open project: redeyeventures/geopattern

Protected Properties

Property Type Description
$baseColor
$color
$generator
$hash
$patterns
$string
$svg

Public Methods

Method Description
__construct ( $options = [] )
__toString ( )
getString ( ) : string
setBaseColor ( $baseColor )
setColor ( $color )
setGenerator ( $generator )
setString ( $string ) Fluent Interfaces
toBase64 ( )
toDataURI ( )
toDataURL ( )
toSVG ( )

Protected Methods

Method Description
buildChevronShape ( $width, $height ) build* functions
buildDiamondShape ( $width, $height )
buildHexagonShape ( $sideLength )
buildOctogonShape ( $squareSize )
buildPlusShape ( $squareSize )
buildRightTriangleShape ( $sideLength )
buildRotatedTriangleShape ( $sideLength, $width )
buildTriangleShape ( $sideLength, $height )
drawInnerMosaicTile ( $x, $y, $triangleSize, $vals ) draw* functions
drawOuterMosaicTile ( $x, $y, $triangleSize, $val )
fillColor ( $val ) Utility Functions
generateBackground ( ) Generators
generatePattern ( )
geoChevrons ( )
geoConcentricCircles ( )
geoDiamonds ( )
geoHexagons ( ) Pattern Makers
geoMosaicSquares ( )
geoNestedSquares ( )
geoOctogons ( )
geoOverlappingCircles ( )
geoOverlappingRings ( )
geoPlaid ( )
geoPlusSigns ( )
geoSineWaves ( )
geoSquares ( )
geoTessellation ( )
geoTriangles ( )
geoTrianglesRotated ( )
geoXes ( )
hexToHSL ( $color ) Color Functions
hexToRGB ( $hex )
hexVal ( $index, $len )
hslToRGB ( $h, $s, $l )
map ( $value, $vMin, $vMax, $dMin, $dMax ) http://processing.org/reference/map_.html
opacity ( $val )
rgbToHSL ( $r, $g, $b )
rgbToHex ( $r, $g, $b ) NOT USED

Method Details

__construct() public method

public __construct ( $options = [] )

__toString() public method

public __toString ( )

buildChevronShape() protected method

build* functions
protected buildChevronShape ( $width, $height )

buildDiamondShape() protected method

protected buildDiamondShape ( $width, $height )

buildHexagonShape() protected method

protected buildHexagonShape ( $sideLength )

buildOctogonShape() protected method

protected buildOctogonShape ( $squareSize )

buildPlusShape() protected method

protected buildPlusShape ( $squareSize )

buildRightTriangleShape() protected method

protected buildRightTriangleShape ( $sideLength )

buildRotatedTriangleShape() protected method

protected buildRotatedTriangleShape ( $sideLength, $width )

buildTriangleShape() protected method

protected buildTriangleShape ( $sideLength, $height )

drawInnerMosaicTile() protected method

draw* functions
protected drawInnerMosaicTile ( $x, $y, $triangleSize, $vals )

drawOuterMosaicTile() protected method

protected drawOuterMosaicTile ( $x, $y, $triangleSize, $val )

fillColor() protected method

Utility Functions
protected fillColor ( $val )

generateBackground() protected method

Generators
protected generateBackground ( )

generatePattern() protected method

protected generatePattern ( )

geoChevrons() protected method

protected geoChevrons ( )

geoConcentricCircles() protected method

protected geoConcentricCircles ( )

geoDiamonds() protected method

protected geoDiamonds ( )

geoHexagons() protected method

Pattern Makers
protected geoHexagons ( )

geoMosaicSquares() protected method

protected geoMosaicSquares ( )

geoNestedSquares() protected method

protected geoNestedSquares ( )

geoOctogons() protected method

protected geoOctogons ( )

geoOverlappingCircles() protected method

protected geoOverlappingCircles ( )

geoOverlappingRings() protected method

protected geoOverlappingRings ( )

geoPlaid() protected method

protected geoPlaid ( )

geoPlusSigns() protected method

protected geoPlusSigns ( )

geoSineWaves() protected method

protected geoSineWaves ( )

geoSquares() protected method

protected geoSquares ( )

geoTessellation() protected method

protected geoTessellation ( )

geoTriangles() protected method

protected geoTriangles ( )

geoTrianglesRotated() protected method

protected geoTrianglesRotated ( )

geoXes() protected method

protected geoXes ( )

getString() public method

public getString ( ) : string
return string

hexToHSL() protected method

Color Functions
protected hexToHSL ( $color )

hexToRGB() protected method

protected hexToRGB ( $hex )

hexVal() protected method

protected hexVal ( $index, $len )

hslToRGB() protected method

protected hslToRGB ( $h, $s, $l )

map() protected method

http://processing.org/reference/map_.html
protected map ( $value, $vMin, $vMax, $dMin, $dMax )

opacity() protected method

protected opacity ( $val )

rgbToHSL() protected method

protected rgbToHSL ( $r, $g, $b )

rgbToHex() protected method

NOT USED
protected rgbToHex ( $r, $g, $b )

setBaseColor() public method

public setBaseColor ( $baseColor )

setColor() public method

public setColor ( $color )

setGenerator() public method

public setGenerator ( $generator )

setString() public method

Fluent Interfaces
public setString ( $string )

toBase64() public method

public toBase64 ( )

toDataURI() public method

public toDataURI ( )

toDataURL() public method

public toDataURL ( )

toSVG() public method

public toSVG ( )

Property Details

$baseColor protected property

protected $baseColor

$color protected property

protected $color

$generator protected property

protected $generator

$hash protected property

protected $hash

$patterns protected property

protected $patterns

$string protected property

protected $string

$svg protected property

protected $svg