summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Wallin <nibbler.v1@gmail.com>2010-08-16 15:05:39 (GMT)
committer Felix Wallin <nibbler.v1@gmail.com>2010-08-16 15:05:39 (GMT)
commitd501059c1b9439a11220163cd3e9333981bf15ff (patch)
tree6afff4a0e843ec3512659838088e7ada20691a2e
parent9fcb23954db99934f3ea38f5ef403cfea0832345 (diff)
downloadpowder-d501059c1b9439a11220163cd3e9333981bf15ff.zip
powder-d501059c1b9439a11220163cd3e9333981bf15ff.tar.gz
Added ln2 diffusing
-rwxr-xr-xpowder.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/powder.c b/powder.c
index 50b5599..dcca104 100755
--- a/powder.c
+++ b/powder.c
@@ -2940,6 +2940,22 @@ justdraw:
y = ny;
blendpixel(vid,x,y,17,217,24,255);
}
+ else if(t==PT_LNTG)
+ {
+ for(x=-3; x<3; x++)
+ {
+ for(y=-3; y<3; y++)
+ {
+ if (abs(x)+abs(y) <2 && !(abs(x)==2||abs(y)==2))
+ blendpixel(vid,x+nx,y+ny,128,160,223,100);
+ if(abs(x)+abs(y) <=3 && abs(x)+abs(y))
+ blendpixel(vid,x+nx,y+ny,128,160,223,70);
+ if (abs(x)+abs(y) == 2)
+ blendpixel(vid,x+nx,y+ny,128,160,223,90);
+ }
+ }
+
+ }
else if(t==PT_SMKE)
{
if(cmode == 3||cmode==4)