On Jul 4, 2007, at 6:54 PM, Alan W. Irwin wrote: > On 2007-07-04 09:12-0700 Alan W. Irwin wrote: > >> If you want to help with this effort of implementing the >> traditional Ada >> examples, please let the list know exactly which ones you are >> working on so >> there is no duplication of effort. >> >> For example, I am currently working on x02a.adb. > >
> One thing revealed by this example is our Ada bindings were much too > conservative about the allowed range of plcol0 indices. I changed > that from > 0..15 to the much more reasonable 0..255. Example 2 uses 116 > different > cmap0 indices, but some users may want more. I removed the range limitation completely so now the index is a full 32 bits. I don't think there is much reason to limit it to 256 or to any other number less than 2^32 unless there is a threshold over which we can definitely discern that a user is making a mistake. Even with the range opened up, Ada still checks the type, Plot_Color_Type. > I chose to limit the range in > the bindings to 0..255 since that corresponds to 24 bits total for > r, g, and > b and is more than adequate to handle example 2. Not sure I understand, since 256 is the number of map entries, not the bits per color. Jerry > > Jerry, please review and correct any strange things I did in Ada for > x02a.adb. > Done (nothing strange). > Alan > ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel