SLTMobitel


SLTMobitel <![CDATA[ var c = document.getElementById("c"); var ctx = c.getContext("2d"); //making the canvas full screen c.height = window.innerHeight; c.width = window.innerWidth; //chinese characters – taken from the unicode charset var chinese = "0l00l00l00l00l00l00l00l00l00l00l000l00l00l00l00l00l00l00l00l00l00l00"; //converting the string into an array of single characters chinese = chinese.split(""); var font_size = 20; var columns = c.width/font_size; //number of columns for the rain //an array of drops – one per column var drops = []; //x below is the x coordinate //1 = y co-ordinate of the drop(same for every drop initially) for(var x = 0; x 0.600) drops[i] = 0; //incrementing Y coordinate drops[i]++; } } setInterval(draw, 50); ]]>

Source