Skip to content

xem/js13k-path

gh-pages
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

js13k-path

A polygon drawer for JS (2D canvas) with a tiny ASCII output.

Used for my 2018 js13kgames entry Geoquiz2.

Decoder/drawer:

c.beginPath();
c.moveTo(x=`×`[z="charCodeAt"]()*8,y=`Ð`[z]()*4);
for(i of"��'/7//''�������w")j=i[z](),a=-(j>>3)*.39+4.72,d=(j&7)*4+4,c.lineTo(x+=d*Math.cos(a),y+=d*Math.sin(a))
c.closePath();
c.stroke();

Releases

No releases published

Packages

No packages published

Languages