summaryrefslogtreecommitdiffstats
path: root/Smoke/palette.c
diff options
context:
space:
mode:
authorWilrik de Loose <wilrik@wilrik.nl>2008-01-09 14:42:19 (GMT)
committerWilrik de Loose <wilrik@wilrik.nl>2008-01-09 14:42:19 (GMT)
commit8e1b200487c1509898a766ce1c3729b8deeba081 (patch)
tree8307c493ba46d5919ba848675fe2302335ee512a /Smoke/palette.c
parenta8ce8c6ea988e99570bed36b37a6ec02cf9e2059 (diff)
download2iv35-8e1b200487c1509898a766ce1c3729b8deeba081.zip
2iv35-8e1b200487c1509898a766ce1c3729b8deeba081.tar.gz
2iv35-8e1b200487c1509898a766ce1c3729b8deeba081.tar.bz2
smooth isolines
Diffstat (limited to 'Smoke/palette.c')
-rw-r--r--Smoke/palette.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Smoke/palette.c b/Smoke/palette.c
index 49b0354..91b944f 100644
--- a/Smoke/palette.c
+++ b/Smoke/palette.c
@@ -29,7 +29,7 @@ void HSVtoRGB(float *r, float *g, float *b, float h, float s, float v)
}
h /= 60; // sector 0 to 5
- i = floor(h);
+ i = (int)floor(h);
f = h - i; // factorial part of h
p = v * (1 - s);
q = v * (1 - s * f);