I hereby claim:
- I am xem on github.
- I am xem06 (https://keybase.io/xem06) on keybase.
- I have a public key ASC5fuxaRvyhB7W-5_bu00ejCWI-x-m3W1yEDXTR-j1m8go
To claim this, I am signing this object:
<body style=margin:0> | |
<canvas id=a> | |
<script> | |
// initialize 2D canvas (c) | |
// initialize game state (s) | |
// initialize keys states (u,r,d,l for directions, k for all the keyboard) | |
c=a.getContext`2d`,k=[u=r=d=l=s=0] | |
// (initialize your global variables here) |
I hereby claim:
To claim this, I am signing this object:
A very short article about a very specific topic: draw 3D points on a 2D canvas!
It's not very complex, but it puzzled me for years, until C4ntelope made this handy introduction based on his own intuition and computations, and Román Cortés helped me complete these explanations and simplify the maths and the code.
(This article is based on that Twitter thread).
content: "..."
, font-family: '...'
)/* ... */
)+ > ~ ; : , ( ) { } /
)
:
in selectors (ex: * :before
!= *:before
)+
and -
in calc(...)
(but not in nth-child and nth-of-type);
(ex: a{color:red;}
)*
in CSS selectors (ex: *:before
=> :before
)0.1%, 1.0%, 0.0px
)0px 0rem 0% 0turn 0vmax 0dpi
)<pre id=p><script id="s" style="display:block">setInterval(z=` | |
/* =<,m#F^ A W###q. */ ; | |
/* #K q##H######Am */ ; | |
/* dP cpq#q##########b, */ ; | |
/* p##@###YG=[#######y */ ; | |
/* d#qg '*PWo##q#######D */ ; | |
/* aem1k.com Q###KWR#### W[ */ ; | |
/* .Q#########Md#.###OP A@ , */ ; | |
/* , (W#####Xx######.P^ T % */ ; | |
/* #y '^TqW####P###BP */ ; |
<body contenteditable oninput=eval(S.textContent)> | |
<h1>Hi! (edit me)</h1> | |
<script style="display:block;border:1px solid;;white-space:pre-wrap" id=S> | |
// JS (edit me) | |
console.log("test"); | |
</script> | |
<style style="display:block;border:1px solid;white-space:pre-wrap"> | |
/* CSS (edit me) */ | |
* { background: #def } | |
</style> |
<canvas id=a> | |
<script> | |
g=a.getContext("webgl"); | |
/* | |
// Coral reef | |
// ----------- |
<?xml version="1.0"?> | |
<bindings xmlns="http://www.mozilla.org/xbl" xmlns:html="http://www.w3.org/1999/xhtml"> | |
<binding id="mycode"> | |
<implementation> | |
<constructor> | |
alert("XBL script executed."); | |
</constructor> | |
</implementation> | |
</binding> |