This is a fairly small, simple falling-sand effect. And it looks really good! There’s a lot of ways to do effects like this, and this cart takes the approach of: for each pixel of sand, see whether the space right below it, below to the left, or below to the right is free, and if it is then move there. It’s a short, simple approach, but it ends up working well for this.
Interestingly, cls() is never called during the render loop. But it doesn’t need to be, since every time a moving pixel of sand is drawn with pset(), the code writes over that position with the dark-blue background colour on the next tick.
Exercise for the reader, try changing the effect so that the pile of sand can be less or more steep! Or take a look at this tweak which allows mouse control of the drop point!
Pictures
Replacing rnd()<.1 near the end with rnd()<.01 makes the sand 'set' slower.