octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

typo in default jet colormap


From: Kai Habel
Subject: typo in default jet colormap
Date: Fri, 28 Sep 2007 07:21:14 +0000
User-agent: IceDove 1.5.0.12 (X11/20070607)

Hello,

I have noticed a typo in the new default colormap. It causes a black
color for the first 1/8 of colormap entries.

Kai

2007-09-27  Kai Habel  <address@hidden>

     * graphics.h.in (colormap_property::colormap_property): fix typo

--- graphics.h.in       2007-09-27 23:34:47.000000000 +0000
+++ graphics.h.in.new   2007-09-27 23:05:32.000000000 +0000
@@ -322,7 +322,7 @@
            else if (x >= 5.0/8.0 && x < 7.0/8.0)
              cmap(i,1) = -4.0 * x + 7.0/2.0;
 
-           if (x < 1/8)
+           if (x < 1.0/8.0)
              cmap(i,2) = 4.0 * x + 1.0/2.0;
            else if (x >= 1.0/8.0 && x < 3.0/8.0)
              cmap(i,2) = 1.0;


reply via email to

[Prev in Thread] Current Thread [Next in Thread]