class-Com.Tecnick.Color.Spot

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.

Class Spot

Com\Tecnick\Color\Spot

Spot Color class

Com\Tecnick\Color\Css
Extended by Com\Tecnick\Color\Web
Extended by Com\Tecnick\Color\Spot

Direct known subclasses

Com\Tecnick\Color\Pdf
Namespace: Com\Tecnick\Color
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 Spot.php
Methods summary
public array
# getSpotColors( )

Returns the array of spot colors.

public string
# normalizeSpotColorName( string $name )

Return the normalized version of the spot color name

public array
# getSpotColor( string $name )

Return the requested spot color data array

public Com\Tecnick\Color\Web\Model\Cmyk
# getSpotColorObj( string $name )

Return the requested spot color CMYK object

public
# addSpotColor( string $name, Com\Tecnick\Color\Model\Cmyk $color )

Add a new spot color or overwrite an existing one with the same name.

public string
# getPdfSpotObjects( integer & $pon )

Returns the PDF command to output Spot color objects.

public string
# getPdfSpotResources( )

Returns the PDF command to output Spot color resources.

Methods inherited from Com\Tecnick\Color\Web
extractHexCode(), getClosestWebColor(), getColorObj(), getHexFromName(), getMap(), getNameFromHex(), getRgbObjFromHex(), getRgbObjFromName(), getRgbSquareDistance(), normalizeValue()
Methods inherited from Com\Tecnick\Color\Css
getColorObjFromCss(), getColorObjFromJs()
Properties summary
protected static array $default_spot_colors

Array of default Spot colors Color keys must be in lowercase and without spaces.

# array ( 'none' => array('name' => 'None', 'color' => array('cyan' => 0, 'magenta' => 0, 'yellow' => 0, 'key' => 0, 'alpha' => 1)), 'all' => array('name' => 'All', 'color' => array('cyan' => 1, 'magenta' => 1, 'yellow' => 1, 'key' => 1, 'alpha' => 1)), 'cyan' => array('name' => 'Cyan', 'color' => array('cyan' => 1, 'magenta' => 0, 'yellow' => 0, 'key' => 0, 'alpha' => 1)), 'magenta' => array('name' => 'Magenta', 'color' => array('cyan' => 0, 'magenta' => 1, 'yellow' => 0, 'key' => 0, 'alpha' => 1)), 'yellow' => array('name' => 'Yellow', 'color' => array('cyan' => 0, 'magenta' => 0, 'yellow' => 1, 'key' => 0, 'alpha' => 1)), 'key' => array('name' => 'Key', 'color' => array('cyan' => 0, 'magenta' => 0, 'yellow' => 0, 'key' => 1, 'alpha' => 1)), 'white' => array('name' => 'White', 'color' => array('cyan' => 0, 'magenta' => 0, 'yellow' => 0, 'key' => 0, 'alpha' => 1)), 'black' => array('name' => 'Black', 'color' => array('cyan' => 0, 'magenta' => 0, 'yellow' => 0, 'key' => 1, 'alpha' => 1)), 'red' => array('name' => 'Red', 'color' => array('cyan' => 0, 'magenta' => 1, 'yellow' => 1, 'key' => 0, 'alpha' => 1)), 'green' => array('name' => 'Green', 'color' => array('cyan' => 1, 'magenta' => 0, 'yellow' => 1, 'key' => 0, 'alpha' => 1)), 'blue' => array('name' => 'Blue', 'color' => array('cyan' => 1, 'magenta' => 1, 'yellow' => 0, 'key' => 0, 'alpha' => 1)), )
protected array $spot_colors

Array of Spot colors

# array()
Properties inherited from Com\Tecnick\Color\Web
$webhex
 

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