diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2019-01-13 00:31:05 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2019-01-13 00:31:05 +0000 |
commit | 0e3a86ab3d83a52cf9c12fa00567901d695e78d2 (patch) | |
tree | 2348f53806c4244b6b9ce7ce0c480da3a3302013 /generator | |
parent | 6b972ae81107e4f9a138a3799c3f86fa5e77b385 (diff) | |
download | netpbm-mirror-0e3a86ab3d83a52cf9c12fa00567901d695e78d2.tar.gz netpbm-mirror-0e3a86ab3d83a52cf9c12fa00567901d695e78d2.tar.xz netpbm-mirror-0e3a86ab3d83a52cf9c12fa00567901d695e78d2.zip |
whitespace
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@3497 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'generator')
-rw-r--r-- | generator/ppmwheel.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/generator/ppmwheel.c b/generator/ppmwheel.c index ef5021f9..b8a4ae0c 100644 --- a/generator/ppmwheel.c +++ b/generator/ppmwheel.c @@ -26,8 +26,8 @@ #define ABS(a) ((a) < 0 ? -(a) : (a)) #endif -static void -hsv_rgb(double const in_h, double const in_s, double const in_v, +static void +hsv_rgb(double const in_h, double const in_s, double const in_v, double * const r, double * const g, double * const b) { /*---------------------------------------------------------------------------- This is a stripped down hsv->rgb converter that works only for @@ -110,7 +110,7 @@ main(int argc, char *argv[]) { pm_error("Diameter must be at least 4. You specified %ld", diameter); cols = rows = diameter; - + orow = ppm_allocrow(cols); maxval = PPM_MAXMAXVAL; @@ -137,7 +137,7 @@ main(int argc, char *argv[]) { double dr, dg, db; hue = atan2(dx, dy) / PI * 180.0; - if (hue < 0.0) + if (hue < 0.0) hue = 360.0 + hue; sat = 0.0; val = dist / radius; |