extensions/HSL: add model doc string
authorØyvind Kolås <pippin@gimp.org>
Wed, 24 Jul 2019 13:28:59 +0000 (15:28 +0200)
committerØyvind Kolås <pippin@gimp.org>
Wed, 24 Jul 2019 13:28:59 +0000 (15:28 +0200)
extensions/HSL.c

index 2650a14daa1ae2472a0527b6aeb83e7b6f6d8141..0cd1daa0ee7eb987b715f94cd910af71d71c3376 100644 (file)
@@ -72,17 +72,19 @@ init (void)
   babl_component_new ("lightness", NULL);
   babl_component_new ("alpha", NULL);
 
-  babl_model_new ("name", "HSLA",
+  babl_model_new ("name", "HSL",
+                  "doc", "HSL - Hue Saturation Lightness, an improvement over HSV; which uses lightness; defined as (MAX(R,G,B) + MIN(R,G,B))/2 for the grayscale axis; better than HSV, but look into the CIE based spaces for better perceptual uniformity. The HSL space is relative to the RGB space associated with the format.",
                   babl_component ("hue"),
                   babl_component ("saturation"),
                   babl_component ("lightness"),
-                  babl_component ("alpha"),
-                  "alpha",
                   NULL);
-  babl_model_new ("name", "HSL",
+  babl_model_new ("name", "HSLA",
+                  "doc", "HSL - with separate alpha component.",
                   babl_component ("hue"),
                   babl_component ("saturation"),
                   babl_component ("lightness"),
+                  babl_component ("alpha"),
+                  "alpha",
                   NULL);