[gegl/gegl-color-gamma: 1/3] gegl-color: Add documentation about format of accepted strings
- From: Jon Nordby <jonnor src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl/gegl-color-gamma: 1/3] gegl-color: Add documentation about format of accepted strings
- Date: Thu, 7 Aug 2014 15:28:52 +0000 (UTC)
commit 6794a167bfbabe796f3d992dee05c8b9332e4951
Author: Jon Nordby <jononor gmail com>
Date: Wed Aug 6 17:07:38 2014 +0200
gegl-color: Add documentation about format of accepted strings
gegl/property-types/gegl-color.h | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/gegl/property-types/gegl-color.h b/gegl/property-types/gegl-color.h
index ab52d96..ae49742 100644
--- a/gegl/property-types/gegl-color.h
+++ b/gegl/property-types/gegl-color.h
@@ -53,6 +53,15 @@ GType gegl_color_get_type (void) G_GNUC_CONST;
* GeglColor is an object containing a color at the moment only RGB colors
* are supported, in the future a GeglColor might also indicate other
* enumerated or natively in other color representations colors.
+ *
+ * GeglColor accepts a subset of format string as defined by the CSS color specification:
+ * http://dev.w3.org/csswg/css-color/
+ *
+ * - RGB hexadecimal notation: #rrggbb[aa] / #rgb[a]
+ * - Named colors are limited to the 16 specified in HTML4
+ *
+ * To specify linear-light floating-point RGB, use: rgb[a](0.40, 0.44, 0.92 [, a])
+ * 1.0 is here the whitepoint, unlike CSS which has 255.
*/
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]