Click here to Skip to main content
15,888,242 members
Articles / Web Development / HTML

CColor - RGB and HLS Combined in One Class

Rate me:
Please Sign up or sign in to vote.
4.90/5 (34 votes)
27 Jan 2015Public Domain 149.4K   4.8K   77  
A class that provides simple color manipulation in RGB and HLS space
The sample application demonstrates the use of the CColor class, and uses come tricks in MFC-tooltip handling. In the upper area, the parameters for drawing the color circle could be controlled, and the lower area shows all named colors. The entire mechanism is implemented through the virtual function OnToolHitTest.

Views

Daily Counts

Downloads

Weekly Counts

License

This article, along with any associated source code and files, is licensed under A Public Domain dedication


Written By
Software Developer
Germany Germany
I'm developing for fun since 1985, starting with UCSD Pascal on some old machines (no hard disk, but four floppies!), then moving quickly on to assembler on the famous C64 and Amiga. During university I started professional development for Windows/Unix/Linux, using a myriad of languages (Pi, Assembler (6502, 68000, 80386/486), Cobol, Modula2, Prolog, OML, C, C++, C#, Java, Scala, Groovy, Clojure, VB, Eiffel, Delphi, Perl, Pascal, Javascript). Currently my favorite languages are Clojure, Ruby and modern Javascript.

Comments and Discussions