Skip to content

Commit

Permalink
Add matrix quine
Browse files Browse the repository at this point in the history
  • Loading branch information
Xavier Delamotte committed Feb 23, 2024
1 parent ef9bfc5 commit 986659b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
12 changes: 12 additions & 0 deletions _posts/2024-02-23-matrix-quine.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
layout: post
title: Matrix Quine
category: Dev
---
An animated quine in only 187 bytes of HTML+JS:

```html
<body onload='setInterval(f=_=>{for(t++,o=i=0,w=35;i<384;o+=i++%+w?(f+f+f)[i].fontcolor(g==9?"#FFF":[0,g,0]):"\n")g=0|(i/w-t/((i%w)**5%w+3)+w*t)%w;p.innerHTML=o},t=9)'bgcolor=X><pre id=p>
```

[Matrix Quine](matrix/quine)
1 change: 1 addition & 0 deletions matrix/quine.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<body onload='setInterval(f=_=>{for(t++,o=i=0,w=35;i<384;o+=i++%+w?(f+f+f)[i].fontcolor(g==9?"#FFF":[0,g,0]):"\n")g=0|(i/w-t/((i%w)**5%w+3)+w*t)%w;p.innerHTML=o},t=9)'bgcolor=X><pre id=p>

0 comments on commit 986659b

Please sign in to comment.