"함수 rgb2hexcolor()"의 두 판 사이의 차이

1번째 줄: 1번째 줄:
[[분류: 색상]]
[[분류: 색상]]
[[분류: 16진수]]
;rgb2hexcolor, rgb 2 hexcolor
;rgb2hexcolor, rgb 2 hexcolor



2017년 4월 17일 (월) 09:53 판

rgb2hexcolor, rgb 2 hexcolor

1 PHP

function rgb2hexcolor($rgb) {
	return '#'.dechex($rgb[0]).dechex($rgb[1]).dechex($rgb[2]);
}

2 같이 보기

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}