- Author:
- Chris Heilmann
- Twitter:
- @
- GitHub:
- Facebook:
- Google+:
- +
- Reddit:
- /r/
- Pouet:
- Website:
- christianheilmann.com
- Compo:
- classic
- Demo link:
- https://js1k.com/2012-love/demo/1031
- Shortlink:
- https://js1k.com/1031
- Blog post:
- please update here!
- Bytes:
- 459
- Chars:
- 455
- Submission
counter=offset=y=0;c.width=w=window.innerWidth;c.height=h=window.innerHeight;c.style.background='#000';setInterval(function(){a.fillStyle='rgba(0,0,0,0.6)';a.fillRect(0,0,w,h);for(var i=0;i<=h;i+=h/20){y=w/6*Math.sin(counter+offset)+w/2;r=30*Math.sin(counter)+50;r2=30*Math.cos(counter)+50;a.fillStyle='hsl('+i+','+r2*2+'%,50%)';a.font=r+'px Arial';a.fillText('♥',-y+w,i);a.font=r2+'px Arial';a.fillText('♥',y,i);offset+=0.2;}
offset=0;counter+=.04},30);
- Description
- Love is at the center of all life.
- Base64 encoded
Y291bnRlcj1vZmZzZXQ9eT0wO2Mud2lkdGg9dz13aW5kb3cuaW5uZXJXaWR0aDtjLmhlaWdodD1oPXdpbmRvdy5pbm5lckhlaWdodDtjLnN0eWxlLmJhY2tncm91bmQ9JyMwMDAnO3NldEludGVydmFsKGZ1bmN0aW9uKCl7YS5maWxsU3R5bGU9J3JnYmEoMCwwLDAsMC42KSc7YS5maWxsUmVjdCgwLDAsdyxoKTtmb3IodmFyIGk9MDtpPD1oO2krPWgvMjApe3k9dy82Kk1hdGguc2luKGNvdW50ZXIrb2Zmc2V0KSt3LzI7cj0zMCpNYXRoLnNpbihjb3VudGVyKSs1MDtyMj0zMCpNYXRoLmNvcyhjb3VudGVyKSs1MDthLmZpbGxTdHlsZT0naHNsKCcraSsnLCcrcjIqMisnJSw1MCUpJzthLmZvbnQ9cisncHggQXJpYWwnO2EuZmlsbFRleHQoJ+KZpScsLXkrdyxpKTthLmZvbnQ9cjIrJ3B4IEFyaWFsJzthLmZpbGxUZXh0KCfimaUnLHksaSk7b2Zmc2V0Kz0wLjI7fQ0Kb2Zmc2V0PTA7Y291bnRlcis9LjA0fSwzMCk7
- Original source
counter = offset = y = 0;
c.width = w = window.innerWidth;
c.height = h = window.innerHeight;
c.style.background = '#000';
setInterval( function() {
a.fillStyle = 'rgba(0,0,0,0.6)';
a.fillRect(0,0,w,h);
for( var i=0; i<=h; i+=h/20 ) {
y = w / 6 * Math.sin( counter +offset ) + w / 2;
r = 30 * Math.sin( counter ) + 50;
r2 = 30 * Math.cos( counter ) + 50;
a.fillStyle = 'hsl(' + i + ',' + r2 * 2 + '%,50%)';
a.font = r + 'px Arial';
a.fillText( '♥', -y+w, i );
a.font = r2 + 'px Arial';
a.fillText( '♥', y, i );
offset += 0.2;
}
offset = 0;
counter += .04
}, 30 );