SpawnParticle.RENDER
struct SpawnParticle
enum RENDER =
q{
float y1 = ship.spawnY();
float tt0 = sqr(sqr(t));
float tt1 = min(1, tt0+0.15f);
float lx0 = x0 + tt0*(x1-x0);
float ly0 = y0 + tt0*(y1-y0);
float lx1 = x0 + tt1*(x1-x0);
float ly1 = y0 + tt1*(y1-y0);
//canvas.aaPutPixel(cf(x), cf(y), WHITE, tofracBounded(tt));
canvas.aaLine(cf(lx0), cf(ly0), cf(lx1), cf(ly1), WHITE, tofracBounded(sqr(tt0)));
};
ae demo pewpew objects SpawnParticle
manifest constantsvariables