RGB to HSV 색상변환 #define MATH_MIN3(x,y,z)( (y) = (z) ? (x) : (z)) ) struct hsv_color { unsigned char h; // Hue: 0 ~ 255 (red:0, gree: 85, blue: 171) unsigned char s; // Saturation: 0 ~ 255 unsigned char v; // Value: 0 ~ 255 }; hsv_color RGB2HSV(unsigned char r, unsigned char g, unsigned char b) { unsigned char rgb_min, rgb_max; rgb_min = MATH_MIN3(b, g, r); rgb_max = MATH_MAX3(b, g, r); hsv_color..
블로그에 소스코드를 이쁘게 올리자. 귀찮아서 링크로 대신한다. [1] 신규하 블로그 - http://gyuha.tistory.com/193 [2] version 3.0.83 (2012.10.22 update)http://gyuha.tistory.com/405 이전에 셋팅하던걸 여기서 보고 한거 같다. 그냥 따라하면됨~!! [3] version 3.0.83 ( 2014.06.10 update )http://jb-story.tistory.com/13 [4] 추가 스타일 확인 ( 2014.06.10 update )http://alexgorbatchev.com/SyntaxHighlighter/manual/themes/ ... some code here ... ... some code here ... 아래의 사용..