PHP 클래스 WPDKColors

저자: =undo= ([email protected])
상속: extends WPDKObject
파일 보기 프로젝트 열기: wpxtreme/wpdk

공개 프로퍼티들

프로퍼티 타입 설명
$__version string Override version

공개 메소드들

메소드 설명
hexAddition ( string $hex, string $num ) : string Perform adding (or subtracting) operation on a hexadecimal colour code
rgb2hex ( string $value ) : boolean | string!array Convert a hex decimal color code to its RGB equivalent and vice versa.

메소드 상세

hexAddition() 공개 정적인 메소드

echo WPDKColors::hexAddition( 'C00001', '1' ); // #C10102
부터: 1.2.0
public static hexAddition ( string $hex, string $num ) : string
$hex string Color hexdecimal value like 'C00001'
$num string Value hexdecimal to add like 1
리턴 string

rgb2hex() 공개 정적인 메소드

echo WPDKColors::rgb2hex( 'FFCC00' ); // array( 255, 240, 0 ) echo WPDKColors::rgb2hex( '1,200,16' ); // '#01C810'
부터: 1.2.0
public static rgb2hex ( string $value ) : boolean | string!array
$value string
리턴 boolean | string!array

프로퍼티 상세

$__version 공개적으로 프로퍼티

Override version
public string $__version
리턴 string