summaryrefslogtreecommitdiff
path: root/src/elements/newgraphics.c
diff options
context:
space:
mode:
authorsavask <savask@yandex.ru>2012-04-15 10:55:03 (GMT)
committer savask <savask@yandex.ru>2012-04-15 10:56:55 (GMT)
commit8523da398fedef61dbf2f38f437d6c7361e61b86 (patch)
tree85943b70d6933762f17c020ee3baa98fa3c144a0 /src/elements/newgraphics.c
parent7a844f51ff7673aa49aee0f04517235c9a4da84a (diff)
downloadpowder-8523da398fedef61dbf2f38f437d6c7361e61b86.zip
powder-8523da398fedef61dbf2f38f437d6c7361e61b86.tar.gz
Added gel - a liquid with variable heat conductivity and viscosity.
Diffstat (limited to 'src/elements/newgraphics.c')
-rw-r--r--src/elements/newgraphics.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/elements/newgraphics.c b/src/elements/newgraphics.c
index af332fb..cf7b9a8 100644
--- a/src/elements/newgraphics.c
+++ b/src/elements/newgraphics.c
@@ -168,6 +168,14 @@ int graphics_WIFI(GRAPHICS_FUNC_ARGS)
*pixel_mode |= EFFECT_LINES;
return 0;
}
+int graphics_GEL(GRAPHICS_FUNC_ARGS)
+{
+ int q = cpart->tmp;
+ *colr = q*(32-255)/120+255;
+ *colg = q*(48-186)/120+186;
+ *colb = q*208/120;
+ return 0;
+}
int graphics_PRTI(GRAPHICS_FUNC_ARGS)
{
*firea = 8;