- Author:
- Nick
- Twitter:
- @
- GitHub:
- Facebook:
- Google+:
- +
- Reddit:
- /r/
- Pouet:
- Website:
- nickswebsite.co.cc
- Compo:
- classic
- Demo link:
- https://js1k.com/2010-first/demo/525
- Shortlink:
- https://js1k.com/525
- Blog post:
- please update here!
- Bytes:
- 1014
- Chars:
- 1014
- Submission
c=document.getElementById("c");c.width=c.height=600;C=c.getContext("2d");M=Math;R=1;C.b=C.beginPath;C.e=C.closePath;C.a=C.arc;C.s=C.stroke;C.f=C.fill;B="#00f";W="#fff";function D(d){return d*(M.PI/180)}
function E(){R++;C.fillStyle=W;C.a(300,300,240,0,2*M.PI,0);C.s();C.f();C.font="30px Impact";x="I thought what I'd do was, I'd pretend I was one of those deaf-mutes";xl=x.length;r=210;C.fillStyle=B;for(i=0;i<xl;i++){C.save();m=(R+i)/xl*(M.PI+2);a=300+r*M.cos(m);b=300+r*M.sin(m);C.translate(a,b);C.rotate(m+D(90));C.fillText(x[i],0,0,15);C.restore()}C.fillStyle=B}
function d(){C.strokeStyle=B;C.lineWidth=10;E();C.save();C.b();C.fillStyle=W;C.lineWidth=10;C.translate(300,300);C.a(0,0,200,-D(6),-D(174),1);C.a(250,0,20,-D(90),D(90),0);C.a(0,0,200,D(5.7),M.PI,0);C.f();C.s();C.fillStyle=B;C.e();C.b();C.a(0,0,150,D(8),D(172),0);C.e();C.s();C.b();C.a(-75,5,15,M.PI,0,0);C.a(75,5,15,M.PI,0,0);C.f();C.e();C.b();C.fillStyle=W;C.a(-75,10,15,M.PI,0,0);C.a(75,10,15,M.PI,0,0);C.f();C.restore()}setInterval("d()",50);
- Description
- A replication of the Laughing man from Ghost in the Shell.
- Base64 encoded
Yz1kb2N1bWVudC5nZXRFbGVtZW50QnlJZCgiYyIpO2Mud2lkdGg9Yy5oZWlnaHQ9NjAwO0M9Yy5nZXRDb250ZXh0KCIyZCIpO009TWF0aDtSPTE7Qy5iPUMuYmVnaW5QYXRoO0MuZT1DLmNsb3NlUGF0aDtDLm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pO0MuZSgpO0MuYigpO0MuZmlsbFN0eWxlPVc7Qy5hKC03NSwxMCwxNSxNLlBJLDAsMCk7Qy5hKDc1LDEwLDE1LE0uUEksMCwwKTtDLmYoKTtDLnJlc3RvcmUoKX1zZXRJbnRlcnZhbCgiZCgpIiw1MCk7
- Original source
<!doctype html>
<html>
<head>
<title>JS1k, 1k demo submission [id]</title>
<meta charset="utf-8" />
</head>
<body>
<canvas id="c"></canvas>
<script>
c=document.getElementById("c");c.width=c.height=600;C=c.getContext("2d");M=Math;R=1;C.b=C.beginPath;C.e=C.closePath;C.a=C.arc;C.s=C.stroke;C.f=C.fill;B="#00f";W="#fff";function D(d){return d*(M.PI/180)}
function E(){R++;C.fillStyle=W;C.a(300,300,240,0,2*M.PI,0);C.s();C.f();C.font="30px Impact";x="I thought what I'd do was, I'd pretend I was one of those deaf-mutes";xl=x.length;r=210;C.fillStyle=B;for(i=0;i<xl;i++){C.save();m=(R+i)/xl*(M.PI+2);a=300+r*M.cos(m);b=300+r*M.sin(m);C.translate(a,b);C.rotate(m+D(90));C.fillText(x[i],0,0,15);C.restore()}C.fillStyle=B}
function d(){C.strokeStyle=B;C.lineWidth=10;E();C.save();C.b();C.fillStyle=W;C.lineWidth=10;C.translate(300,300);C.a(0,0,200,-D(6),-D(174),1);C.a(250,0,20,-D(90),D(90),0);C.a(0,0,200,D(5.7),M.PI,0);C.f();C.s();C.fillStyle=B;C.e();C.b();C.a(0,0,150,D(8),D(172),0);C.e();C.s();C.b();C.a(-75,5,15,M.PI,0,0);C.a(75,5,15,M.PI,0,0);C.f();C.e();C.b();C.fillStyle=W;C.a(-75,10,15,M.PI,0,0);C.a(75,10,15,M.PI,0,0);C.f();C.restore()}setInterval("d()",50);</script>
</body>
</html>