sorta glow-ish

This commit is contained in:
Alex 2010-08-16 15:09:45 -04:00
parent 9c0a95c34b
commit b27e61e64a

View File

@ -3180,8 +3180,20 @@ justdraw:
blendpixel(vid, nx+1, ny+1, cr, cg, cb, 32); blendpixel(vid, nx+1, ny+1, cr, cg, cb, 32);
blendpixel(vid, nx-1, ny-1, cr, cg, cb, 32); blendpixel(vid, nx-1, ny-1, cr, cg, cb, 32);
} }
} } else if(t==PT_URAN) {
else if(t==PT_PLSM) cr=0x70;
cg=0x70;
cb=0x20;
blendpixel(vid, nx, ny, 255, 255, 255, 255);
blendpixel(vid, nx+1, ny, cr+100, cg+100, cb+100, 96);
blendpixel(vid, nx-1, ny, cr+100, cg+100, cb+100, 96);
blendpixel(vid, nx, ny+1, cr+100, cg+100, cb+100, 96);
blendpixel(vid, nx, ny-1, cr+100, cg+100, cb+100, 96);
blendpixel(vid, nx+1, ny-1, cr, cg, cb, 255);
blendpixel(vid, nx-1, ny+1, cr, cg, cb, 255);
blendpixel(vid, nx+1, ny+1, cr, cg, cb, 255);
blendpixel(vid, nx-1, ny-1, cr, cg, cb, 255);
} else if(t==PT_PLSM)
{ {
float ttemp = parts[i].life; float ttemp = parts[i].life;
int caddress = restrict_flt(restrict_flt(ttemp, 0.0f, 200.0f)*3, 0.0f, (200.0f*3)-3); int caddress = restrict_flt(restrict_flt(ttemp, 0.0f, 200.0f)*3, 0.0f, (200.0f*3)-3);