blog home

How can you use emphasis to improve a design?

Posted by Jen in design & art, random thoughts on April 26th, 2009

emphasis_mixfocal_points_2

Emphasis is the most outstanding element in an entire design work. It is also known as the Focal Point.  Focal point is a method used in graphic design to draw the audiences’ attention at first glance.  It plays a very important role among all the elements in the design work to create a design flow of visual hierarchy.

There are various ways to create the emphasis, and they will be used depending on the specific scenario of the specific design.  Positions, sizes, shapes, directions, hues, saturations and special effects as well can all be the factors to make the elements the emphasis or not.  However, emphasis is always recommended to be used on the small amount of objects in the design work, while the rest of the elements will be the supporting emphasis, meaning secondary focal points, a.k.a. accents.  And others will just display as a background (or negative space as we discussed before).  Emphasize on few objects, otherwise, eyes will be distracted with too many elements competing with each other, as a result the design flow won’t be formed.  Flow can only be created with different weights of the elements, in the order from the most important to the least.  Emphasis is part of the flow, but can never take place of the flow.

be consistent with php function return type

Posted by William in backend on April 20th, 2009

PHP is a type-less language, which gives you the flexibility of, for example, return anything from a function. This, however, can trigger hard-to-find bugs if you abuse it. A better choice would be consistent with return types, where I mean if the function is supposed to return boolean, only return boolean; if it’s supposed to return a string, always return a string; if it’s supposed to return an array, always return an array.

Here are some examples that shows how it can break your code if you do not pay attention to return types.

Example 1. Disaster: return boolean true and string:

function foo ()

{

if ( some_condition() )

return “ERROR_1″;

else if (some_other_condition() )

return “ERROR_2″;

else

return true;

}

So the author of this function is trying to return some error code (in string, bad idea!), or true if everything is good. But the problem is that any string will be evaluated to be true. So if you have a caller like this:

$rtn = foo();

if ($rtn == true)

// foo is good.

else if ( $rtn == “ERROR_1″ )

// handle ERROR_1

You will have a bug here. The “else” section will never be executed, that’s because if you compare any string to boolean true with “==” operator, it is always true. You could use === to force a type check but your callers may not be aware of that. Some solution to this would be:

  • make the function return true or false only, on throw exceptions instead of returning error code
  • if you so intend to return error code, either through string, or use defined constant (a better idea), never return a boolean. For example, rather than return boolean true, return a constant RTN_OK

in other words, when  you design your function, if you decide what type it should return, always return that type.

Example 2: a function that returns an array.

For example, you have a function that tries to get some data from memcache. If no data from memcache found, get it from database, and cache it in memcache.

function get_customers( $bookid )

{

$mc_key = “bk-cust-$bookid”;

if  ( !$customers = $memcache->get( $mc_key ) )

{

// no records in memcache

$customers = array();

$result = mysql_query(”SELECT * FROM book_customers WHERE bookid=$bookid”);

while ($row = mysql_fetch_array($result))

$customers[] = $row;

$memcache->set( $mc_key, $customers ); //cache it.

}

return $customers;

}

The problem of this function is that if there is nothing found in the database initially, you will end up setting an empty array in the memcache, then when you do memcache->get, you will get it back as a boolean true instead.

the black cat

Posted by Jen in design & art on April 16th, 2009

charcoal_cat_180

Charcoal and pencil drawing

Calla Lilies in Rain - color schemes

Posted by Jen in design & art on April 12th, 2009

Ever since the chemist Michel Eugene Chevreul published his 1839 study of simultaneous contrast, the effect that colors observed adjacently influence each other, artists have been influenced by his ideas. His theories (studied in the 2nd course 20B) formed the foundation for a modern color theory that later artists continued to explore. Less known is the fact that he is also responsible for describing a set of harmonious color relationships known as “color schemes,” or “color ways,” and these have become so widely understood, that they are used in many fields of study besides fine art, and can be found in advertising art, fabric, interior, architectural, and garden design. new variations have since been added to his original schemes.

Complement, Analagous and Triad are three different color schemes among all color schemes proposed by Chevreul. The following three paintings are created based on these three color schemes, to show the different effect for each.
Materials: Gouache paint

complementanalagoustriad

How can you use asymmetry to create an active design?

Posted by Jen in design & art, random thoughts on April 11th, 2009

shampoodollAsymmetry graphic design, compare to symmetry design, looks more casual and thus get more interesting visual result.  However, as a designer, we should know that asymmetry design still needs visual balance and it’s even harder than keeping the balance for symmetry design, since to make different components in one design balance, we have to take all the visual factors including size, shape, values, contrast, distance, etc… into consideration.

I regard graphic design a form of art that people use to convey information and messages.  It can be called applied art.  Therefore, to create an active design, asymmetry is used much more often than symmetry method, due to the fact that asymmetry is more dynamic, flexible and alive.

In order to convey information, designer needs to create a flow in the design, through which the audience will be able to get the information.  Usually we put the catchiest component that we want the audience see at the first glance.  This is to get the attention from the audience to let them look into the design. This component can be an interesting image or some headline text.  To make it outstanding to catch the audience’s eyes, it has to be in the very dominant position of the design, say the center or near center place, and with high contrast to the background color.  The rest of the components will be either the supplementary of the headline or the details of the entire information.  Once the audience is reading your design, you have to let him read smoothly and comfortably. Then a flow of the components is really important. The information has to be in a flow, starting from the first eye catchy component.  You can place the components in the order by their size, contrast, saturation and distance to the center.  Say the most important information need a big size, high contrast and close to the dominant place, while the last information is usually least distinguished. They cannot be competing with each other or hiding from each other.  Audience needs a clear flow to avoid any kind of confusion.

This concept of message flow perfectly matches the asymmetry design method.  To achieve a balanced visual effect, the biggest (in terms of shape, color, value, etc.) item is placed closest to the center while smaller items are placed further from the center.  However, no matter what type of graphics we are creating, we should always keep in mind that all the components should look like they are placed in relationship with each other in stead of randomly distributed, because graphics is a form of art that conveys messages.

The business card of Shampoo Doll is a very good example of Asymmetry design. The design mainly consists two parts, the text of “Shampoo Dolls” in the center and the blue shampoo bottle at the bottom right corner. The magenta text in the center is the dominant part.  It has a very strong contrast with the blue background and stands out from this business card. I believe the designer of this card did it on purpose since the name of the business is most important information that they want to convey to the reader of the business card.  The graphic of a shampoo bottle as the second component in this designer is positioned at the corner of the card, with very similar blue of the background. The purpose of this component is to balance the text and to give the graphic message of the business to the readers.  Thus an interesting asymmetry design came to life.

Color Symbolic

Posted by Jen in design & art on April 9th, 2009

Some fun collage I did years ago. The colors were cut off from various magazine paper.

The word came to my mind first, then I tried to find the main color it and then the other colors to match it. For instance, Vibrant - the main color is Magenta; Yellow and green are the secondary colors which goes with magenta for the meaning of the word.

color symbolic