class-Com.Tecnick.Color.Model

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 Model

Com\Tecnick\Color\Model

Color Model class

Abstract
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 Model.php
Methods summary
public
# __construct( array $components )

Initialize a new color object

public string
# getType( )

Get the color model type (GRAY, RGB, HSL, CMYK)

public integer
# getNormalizedValue( float $value, integer $max )

Get the normalized integer value of the specified float fraction

public integer
# getHexValue( float $value, integer $max )

Get the normalized hexadecimal value of the specified float fraction

public string
# getRgbaHexColor( )

Get the Hexadecimal representation of the color with alpha channel: #RRGGBBAA

public string
# getRgbHexColor( )

Get the Hexadecimal representation of the color: #RRGGBB

Properties summary
protected string $type

Color Model type (GRAY, RGB, HSL, CMYK)

#
protected float $cmp_alpha

Value of the Alpha channel component. Values range between 0.0 (fully transparent) and 1.0 (fully opaque)

# 1.0
 

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