WPDK  1.5.0
WordPress Development Kit
 All Data Structures Files Functions Variables Pages
WPDKColors Class Reference
Inheritance diagram for WPDKColors:
WPDKObject

Static Public Member Functions

static rgb2hex ($value)
 RGB to HEX. More...
 
static hexAddition ($hex, $num)
 Hex addition. More...
 
- Static Public Member Functions inherited from WPDKObject
static __delta ($last_version, $old_version)
 Object delta compare for combine. More...
 
static delta ($last_version, $old_version)
 
static __dump ($var, $monitor=false)
 Dump a variable. More...
 

Data Fields

 $__version = '1.0.2'
 Version. More...
 
- Data Fields inherited from WPDKObject
 $__version = '1.0.0'
 The version number assigned to the class. More...
 

Additional Inherited Members

- Public Member Functions inherited from WPDKObject
 __className ()
 Returns the class object. More...
 
 __parentClass ()
 Returns the class object for the receiver’s superclass. More...
 
 __isClass ($class)
 Brief. More...
 
 __isSubclassOfClass ($class)
 Return TRUE if the receiving class is a subclass of —or identical to— $class, otherwise FALSE. More...
 

Detailed Description

Manange color conversions and more

Author
=undo= info@.nosp@m.wpxt.nosp@m.re.me
Date
2014-01-08
Version
1.0.2

Definition at line 12 of file wpdk-colors.php.

Member Function Documentation

static hexAddition (   $hex,
  $num 
)
static

Hex addition.

Perform adding (or subtracting) operation on a hexadecimal colour code

echo WPDKColors::hexAddition( 'C00001', '1' ); // #C10102
Since
1.2.0
Parameters
string$hexColor hexdecimal value like 'C00001'
string$numValue hexdecimal to add like 1
Returns
string

Definition at line 93 of file wpdk-colors.php.

static rgb2hex (   $value)
static

RGB to HEX.

Convert a hex decimal color code to its RGB equivalent and vice versa.

echo WPDKColors::rgb2hex( 'FFCC00' );   // array( 255, 240, 0 )
echo WPDKColors::rgb2hex( '1,200,16' ); // '#01C810'
Parameters
string$value
Since
1.2.0
Returns
bool|string!array

Definition at line 36 of file wpdk-colors.php.

Field Documentation

string $__version = '1.0.2'

Version.

Override version

Definition at line 21 of file wpdk-colors.php.


The documentation for this class was generated from the following file: