[gtkada] Suggestion for revising example in gdk-color.ads
Emmanuel Briot
briot at gnat.com
Fri Jan 19 10:36:23 CET 2001
Bobby D. Bryant writes:
> FYI, gdk-color.ads has this:
>
> When I first looked at the example I found it rather misleading, since
> it is so common to see RGB colors spec'd out in the range 0..255. I
> think most people will look at this example and, like me, ass-u-me that
> it is a way of generating white.
>
> It might make a better example to use numbers that don't trigger a
> reflexive interpretation among people who know just enough to be
> dangerous. It might also be worth repeating the earlier comment about
> the ranges down in the example too.
Thanks for this report.
Indeed, 255 was misleading (in fact, we probably wrote the example thinking
255 was the maximal value :-). This has now been changed in the development
version of GtkAda, which hopefully will make this package clearer.
Emmanuel
More information about the gtkada
mailing list