←
Alastair Dant2,707 posts
Alastair Dant avatar

Alastair Dant

@ajdant

UI engineer @projector. Formerly graphics @NYTimes, @Guardian. Legal alien

◷ Joined July 2009▧ 145 Photos and videos
hardmaru avatar
⟳ Alastair Dant retweeted
hardmaru@hardmaru·26 May 2024

Incredible blog post by @KilledByAPixel that explains the magic of this tiny raycasting engine and city generator that fits in a standalone 256 byte html file. frankforce.com/city-in-a-bot…

A City in a Bottle 🌆 <canvas style=width:99% id=c onclick=setInterval('for(c.width=w=99,++t,i=6e3;i--;c.getContext`2d`.fillRect(i%w,i/w|0,1-d*Z/w+s,1))for(a=i%w/50-1,s=b=1-i/4e3,X=t,Y=Z=d=1;++Z<w&(Y<6-(32<Z&27<X%w&&X/9^Z/8)*8%46||d|(s=(X&Y&Z)%3/Z,a=b=1,d=Z/w));Y-=b)X+=a',t=9)>

0:58
Yoshiaki Araki 荒木義明 avatar
⟳ Alastair Dant retweeted
Yoshiaki Araki 荒木義明@alytile·1 May 2023

This crocodiles was drawn by me about 30 years ago. This time, Tiled.art includes three of my works including the crocodiles from that time. Through carefully animated visualizations, you will be able to relive the symmetry on which this work was based.

0:16
rauno avatar
⟳ Alastair Dant retweeted
rauno@raunofreiberg·10 Feb 2023

Hold to confirm

0:07
Shu avatar
⟳ Alastair Dant retweeted
Shu@shuding·28 Dec 2021

I made github.com/shuding/cobe a while ago: a 5kB globe lib, and it improved our page performance* by almost 60%. How is it created? Time for a WebGL & shader thread!

0:05
Nikita Lisitsa avatar
⟳ Alastair Dant retweeted
Nikita Lisitsa@lisyarus·18 Dec 2021

I've learnt about logistic regression and decided to implement it as an interactive online tool: lisyarus.github.io/webgl/cla…. You can add points, move them around, and change the regression order!

1:04
Noah Veltman avatar
⟳ Alastair Dant retweeted
Noah Veltman@veltman·8 Dec 2021

tried rendering "cubist new york subway map" and the results were better than expected

Post attachment
Javier Zarracina avatar
⟳ Alastair Dant retweeted
Javier Zarracina@JZarracina·21 Jun 2021

GRAPHICS JOBS! Every major media organization in the US is hiring graphic journalists. A thread with a few on the top of my head, and a couple of thoughts...

John Burn-Murdoch avatar
⟳ Alastair Dant retweeted
John Burn-Murdoch@jburnmurdoch·22 Apr 2021

If you're looking for some good Covid news, turn to page 21 of today's FT: The vaccines work, folks 💉💪🙌

Post attachment
Manuel Lima avatar
⟳ Alastair Dant retweeted
Manuel Lima@mslima·8 Apr 2021

Have you ever though how major religions have evolved over centuries, splitting, subdividing, and inspiring numerous others, just like an intricate evolutionary tree? The chart below is your answer.

Post attachmentPost attachmentPost attachmentPost attachment
Ben Lesh avatar
⟳ Alastair Dant retweeted
Ben Lesh@BenLesh·25 Feb 2021

TIL that Error objects in #JavaScript will leak closures until you read `stack`. So don't keep them around. In other words, everything in the closure at the point `new Error` was called, will stick around for as long as you have a reference to the error until you read `stack`.

Post attachment