<pedrocorreia.net ⁄>

<Color Theory for Developers ⁄ >

clicks: 3412 3412 2006-12-09 2006-12-09 goto tecnologia myNews tecnologia  Bookmark This Bookmark This

Color theory may sound like a subject for the Art Department, not for developers. But we've all had the experience of choosing a color scheme using the property grid to select named colors and ending up with a really garish color scheme. In an ideal world it might be the case that only our software's functionality really mattered but, in the world that we actually live in, users are likely to prefer software with a sophisticated color scheme over software with an ugly color scheme.

Many small companies don't have an Art Department, while in medium sized companies, the Art Department is often a single person who simply doesn't have the time to help you choose colors. So often the developer is stuck choosing colors.

Now, choosing colors that go well together is a matter of taste, and while taste can be acquired and improved, it's not something that the average developer has ever spent much time on. Fortunately, color theory provides a developer-friendly way around the issue: a few simple principles govern not only how colors interact, but also what makes a color a good foreground color or a good background color.

The first thing you need to know about color theory is that the familiar RGB (Red-Green-Blue) model is really just a sort of implementation detail. RGB is not a very good way to think about color. (This will probably come as no surprise to anyone who's tried to tweak color by changing the RGB values and found that, say, decreasing the red component made the color look grayer, not more blue-green.) Intead, the HSB [Hue / Saturation / Brightness] model provides a much more realistic way of controlling color. This article summarizes the HSB model; introduce a few HSB-oriented rules for combining colors; and shows some code that uses the HSB model to generate random color schemes for simple bar charts.

As you know, RGB uses three numbers to describe any color. The Red, Green, and Blue components map directly to the number of red, green, and blue photons a given pixel is putting out. RGB is very close to the monitor's color-generation hardware.

este é só um excerto do artigo, para aceder ao artigo completo, clique no link em baixo:
this is just a small excerpt from the article, to access the full article please click in the link below:


Subscribe News RSS  Subscribe News Updates by E-mail

myNews <myNews show="rand" cat="tecnologia" ⁄>

MongoDb Architecture new ...

NOSQL has become a very heated topic for large web-scale deployment where scalability and semi-struc (...)

clicks: 19498 19498 2012-05-14 2012-05-14 goto url (new window) horicky.blogspo... goto myNews tecnologia

A Hopefully Fair and Useful Comparison of Haskell Web Frameworks new ...

Recently there has been a lot of discussion and questions about the differences between the big thre (...)

clicks: 21412 21412 2012-05-13 2012-05-13 goto url (new window) softwaresimply.... goto myNews tecnologia

Retina graphics for your website new ...

retina.js is an open source script that makes it easy to serve high-resolution images to devices wit (...)

clicks: 15662 15662 2012-05-11 2012-05-11 goto url (new window) retinajs.com/ goto myNews tecnologia

What every programmer should know about memory, Part 1 new ...

In the early days computers were much simpler. The various components of a system, such as the CPU, (...)

clicks: 17452 17452 2012-05-10 2012-05-10 goto url (new window) lwn.net/Article... goto myNews tecnologia

The State Of HTML5 Video

HTML5 has entered the online video market, which is both exciting and challenging for developers in (...)

clicks: 7161 7161 2012-02-14 2012-02-14 goto url (new window) longtailvideo.c... goto myNews tecnologia

A Tour of Amazon's DynamoDB

Amazon's recent release of DynamoDB, a database whose name is inspired by Dynamo, the key-value data (...)

clicks: 6611 6611 2012-02-13 2012-02-13 goto url (new window) paperplanes.de/... goto myNews tecnologia

Video: CSS3 Secrets: 10 things you might not know about CSS3

A number of prominent front-end developers delivered helpful talks at this year's Fronteers 2011 con (...)

clicks: 7141 7141 2011-11-30 2011-11-30 goto url (new window) css.dzone.com/a... goto myNews tecnologia

Google BigQuery Service: Big data analytics at Google speed

Rapidly crunching terabytes of big data can lead to better business decisions, but this has traditio (...)

clicks: 6460 6460 2011-11-30 2011-11-30 goto url (new window) googlecode.blog... goto myNews tecnologia