class-Com.Tecnick.Color.Model.Template

It appears that you are using AdBlocking software. The cost of running this website is covered by advertisements. If you like it please feel free to a small amount of money to secure the future of this website.

Interface Template

Com\Tecnick\Color\Model\Template

Color Model Interface

Namespace: Com\Tecnick\Color\Model
Package: Color
Category: Library
Copyright: 2015-2015 Nicola Asuni - Tecnick.com LTD
License: GNU-LGPL v3 (see LICENSE.TXT)
Author: Nicola Asuni info@tecnick.com
Since: 2015-02-21
Link: https://github.com/tecnickcom/tc-lib-color
Located at Model/Template.php
Methods summary
public array
# getArray( )

Get an array with all color components

public array
# getNormalizedArray( integer $max )

Get an array with color components values normalized between 0 and $max. NOTE: the alpha and other fraction component values are kept in the [0..1] range.

public string
# getCssColor( )

Get the CSS representation of the color

public string
# getJsPdfColor( )

Get the color format used in Acrobat JavaScript NOTE: the alpha channel is omitted from this representation unless is 0 = transparent

public string
# getComponentsString( )

Get a space separated string with color component values.

public string
# getPdfColor( )

Get the color components format used in PDF documents NOTE: the alpha channel is omitted

public array
# toGrayArray( )

Get an array with Gray color components

public array
# toRgbArray( )

Get an array with RGB color components

public array
# toHslArray( )

Get an array with HSL color components

public array
# toCmykArray( )

Get an array with CMYK color components

public
# invertColor( )

Invert the color

 

© 2004-2017 – Nicola Asuni - Tecnick.com - All rights reserved.
about - disclaimer - privacy