MCPcopy Create free account
hub / github.com/Vishal-raj-1/Awesome-JavaScript-Projects / showLetters

Function showLetters

assets/js/binary_circle.js:31–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

29}
30
31function showLetters(){
32 ctx.fillStyle = "#fff";
33 ctx.font = font_size + "px Gotham";
34
35 for(let i = 0; i < drops.length; i++){
36 let text = letters[Math.floor(Math.random()*letters.length)]; let textPosY = drops[i] * font_size ;
37 ctx.fillText(text,i*font_size,textPosY);
38 if(textPosY > height && Math.random() > 0.956){
39 drops[i] = 0;
40 }
41
42 drops[i]++;
43 }
44}
45function clear(){
46 ctx.fillStyle = 'rgba(0, 0, 0,0.1)';
47 ctx.fillRect(0,0,width,height);

Callers 1

drawFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected