INSTRUCTIONS
Mouse press to see view the stars when the sky goes dark and candle melts down. And press any key to change the colour of the candle. adown. This animation runs for one minute so wait, till the end.
DESIGN PROCESS
1. MELTING CANDLE : I simply made candle first, added the time (seconds) so that as the time passes by the candle becomes shorter with the flick and it’s light. The melting wax can be seen where at the end of 55 seconds the flame vanishes due to the rain leaving behind just the wax of the candle. Leaving to the darkness. Flickering flame made by using random fills within the colour range.
Major Functions used : random () , if, else, if () , second(), keyPressed() , mousePressed()
2. SKY : Then I added the background colour which also changed with the in few seconds, with the size of the melting candle. I wanted to show the different blues in the sky, from light blue in day to dark blue and black at night. Added the day, month, time, hour, minute, seconds – at the bottom left so that the viewer can relate and reflect to the one minute animation.
Major Functions used : if else function, time & dd/mm/yy, console.log
3. SUN AND MOON : I added the sun which signifies the day time, from dark orangish yellow colour to light yellow and as the day and time passes by, it changes to moon, becomes smaller and smaller ultimately becoming white.
Major Functions used : lerpColor() , map () , second()
4. STARS : I wanted to add the details, where I added the twinkling stars when mouse is pressed. Stars becomes visible at night, as the sky becomes darker, time passes by showing the stars in few seconds before a minute ends.
Major Functions used : extra canvas- createGraphics() , mousePressed() , if ()
5. RAIN : I wanted to depict the rain for which I used the rectangle to understand better and give dimensions and changes to the time. The rain starts in the evening sky when the clouds gets to seem grow bigger. And as the sun begins to disappear, it rains and rains, melting the candle faster, ultimately flame goes off, leaving no mark of light except the moonlight, just highlighting the melted wax.
Major Functions used : randomGaussian() , exp - pow() , modulo operator - % to give a range and control rain
6. CLOUDS – And lastly, I made clouds which you could see appearing one by one, changing it’s colour one by one from left to right , right to left signifying the heaviness and darkness with shades of dark blue and grey along with the disappearance of daylight.
Major Functions used : if else , second()
REFLECTION
This assignment made me think critically of the situations where I experienced the passage of time. I had few interesting ideas, out of which I really wanted to convey a message that after every rough patch of darkness there is light. The nostalgic feeling from my childhood, where I experienced the power cut in my area mostly happened due to the rains. So my parents used to light the candle during those hours in absence of electricity. It used to be dark inside the house, where as raining in the outside. It used to be a bit gloomy and dark moments in the candle. To see it melting reflected the passage of time for me, with the melting of wax, the candle flickering due to a little cool breeze, shower of raindrops, the change in the colour of the sky from light blue to a very dark blue, sunlight to moonlight, dark huge clouds which looked like a gigantic shadow of some face. I clearly remember these feelings, which are still embedded in my mind when the light goes off. Me and friends used to dance and play in the rain with full of joyfulness. The interpretation of this process is optimistic in my view where I wish to be the lighten up candle in the darkness, wiping off my sins in presence of god in the form of rain. The experimental clock I made, has given me confidence in coding and daring to try new things.