Skip to content

Random Snowflakes Generator Using <200 Bytes of HTML and JavaScript.

Notifications You must be signed in to change notification settings

codegolf/snowflake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

snowflake

A random snowflake generator using 190 bytes of HTML and JavaScript.

Demo: https://codegolf.github.io/snowflake

image

Source

<canvas id=b><svg onload='with(Math
)for(I=Y=0;Y++<70;I=random()-1.9&I+
1)for(i=12;i--;C=X=>b.getContext`2d
`.fillRect(70+X,s*j+c*Y+70,1,1)||X,
C(-C((c=cos(a=PI/3*i))*j-(s=sin(a))
*Y)))j=i>5&&I'>

About

Random Snowflakes Generator Using <200 Bytes of HTML and JavaScript.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published