<p>Right, in Rig we use rut_color_init_from_4f in this case, maybe we could do the same kind of thing here.</p>
<p>Regards, - Robert</p>
<div class="gmail_quote">On May 28, 2013 2:59 PM, "Neil Roberts" <<a href="mailto:neil@linux.intel.com">neil@linux.intel.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Robert Bragg <<a href="mailto:robert@sixbynine.org">robert@sixbynine.org</a>> writes:<br>
<br>
> I just realized that this bit also needs to initialize the alpha component:<br>
><br>
> + if (saturation == 0)<br>
> + {<br>
> + color->red = color->green = color->blue = (luminance * 255);<br>
> +<br>
> + return;<br>
> + }<br>
<br>
Looks like it also shouldn't multiply by 255 seeing as CoglColors are<br>
floats.<br>
<br>
Regards,<br>
- Neil<br>
---------------------------------------------------------------------<br>
Intel Corporation (UK) Limited<br>
Registered No. 1134945 (England)<br>
Registered Office: Pipers Way, Swindon SN3 1RJ<br>
VAT No: 860 2173 47<br>
<br>
This e-mail and any attachments may contain confidential material for<br>
the sole use of the intended recipient(s). Any review or distribution<br>
by others is strictly prohibited. If you are not the intended<br>
recipient, please contact the sender and delete all copies.<br>
<br>
_______________________________________________<br>
Cogl mailing list<br>
<a href="mailto:Cogl@lists.freedesktop.org">Cogl@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/cogl" target="_blank">http://lists.freedesktop.org/mailman/listinfo/cogl</a><br>
</blockquote></div>