Ass­i­g­n­m­e­n­t 1

by Hung-Chih WU

Design Brief

This coding assignment is to create a sketch that generates variation each time you run it. The theme I chose is Balance and Harmony, I think that harmony is a status that all the setting, all the things are in a balance. The size I decided to use to 400x300, which can be apply on a postcard.


I was inspired by everyone's childhood memories, the idea of retro game, which people will typically think of games made before 1990, for example games from consoles like the GameBoy. All of those game use blocky, pixelated, bitmap graphics. These are the type of games that probably come to mind for most people when they think of retro games.

My design follow the important aspect of the Old-school gaming screen, where the consoles were only able to display a limited number of colors,the colors are so distinct, you can almost recognize the game just from the color swatches. Therefore, for this design, i choose to utilise techniques that will be shown with repetition and randomness which create a strong effect on presentation. On the other hand, randomness is a way to express personal emotions into the work. Not only abstract styles, I also inspired by the style of Yayoi Kusama, which are made of endless dots and strong visible colour that create the effect of illusion.


Starting from researching, I try searching idea that can easily connect everyone together, something that we all have in common, which comes up the idea of retro gaming that will brings up everyone's memories. Follow my ideas with retro gaming , i observe the style of retro gaming and realized that I can do a cityscape with coding, combining the techniques of simplifying the actual buildings and landscape into colour blocks.

The first sketch, I came up with rectangles and circles, which are all in random places on the sketch, I tried to apply the codes that I learnt from class.

The second sketch, applying filling into the rectangles and realized that there is another way to represent the circles. After running the codes for few time, I think it is too basic and start thinking about expanding the sketching.

Having more experiment with different coding, I finally decided to create a cityscape with snow at night that often appears in the beginning of a fighting game with changing the colours and the strokes.

I successfully achieve what I wanted. However, during the process there are limitations that faced, for example, originally i was aiming to create a more 3D look building that comes with shadows and rendered with brightly glowing line, but unfortunately i was not able to complete it due to some error when coding and also the brightly glowing line with the snowing effect appears to be unbalance and lack of harmony.

Few websites attracted my attention while doing the research, which helped me a lot and inspired me for the work.

  1. MaedaReactive by jtarbell

  2. How sexy is your interface by Kashiwa Sato

  3. RGB Color Codes Chart .

  4. Processing . This website provides a lot of knowledge with coding.


Processing.Processing. Available at [Accessed 10 April 2016].

Rapidtables. 2016. RGB color code chart. Available at [Accessed 10 April 2016].

Generator.x. 2007. How sexy is your interface: Kashiwa Sato. Available at [Accessed 10 April 2016].

Levitated. 2001. MaedaReactive. Available at [Accessed 13 April 2016].

The Met. 2000. The Block. Available at [Accessed 13 April 2016].

  • Show Sketch
/** @peep sketchcode */ 
/** @author huwu2896 */
float posx = 1;//
float posy = 1;
int sizex = 30;//colour rect size
int sizey = 90;
float dotSize;
float ranColour1;
float ranColour2;
float ranColour3;
void setup() {
  size(400, 300); //size for the canvas
  background(0); //colour for the background
rect(0, 260, 400, 250);
stroke(0); //colour of the line
line(0, 290, 400, 260);
line(0, 260, 400, 280);
line(0, 260, 400, 270);
line(0, 260, 400, 260);
void drawRect() {
  for (int i = 0; i < 25; i++) { //loop create, change numbers can change teh amount that appears
    ranColour1 = random(0, 255);//random each loop
    ranColour2 = random(0, 255);
    ranColour3 = random(0, 255);
    fill(ranColour1, ranColour2, ranColour3); 
    posx = random(10, 380);
    posy = random(100, 180);
    rect(posx, posy, sizex, sizey);
void drawDots() {
   for(int i = 0 ; i < 280; i++){//loop create, change numbers can change the amounts of dots that appears
    fill(255,255,255);// colour of dots
     dotSize = random(2,5);
    posx = random(5, 390);
    posy = random(5, 290);
     ellipse(posx,posy,dotSize, dotSize);


Nobody has said anything yet.