[ROOT] Custom TColor allocations.

From: Brett Viren (bv@bnl.gov)
Date: Mon Sep 09 2002 - 18:50:36 MEST


Hi,

I want to allocate a set of custom TColors for my application, but am
confused on a few details:

1) How do I pick a block of color indices (ie, the first arg to the
TColor ctor) that doesn't cover previously existing allocations?  

2) What about ownership?  Do I just let them live forever in
TROOT:fColors, or should they die when the object that created them
dies?

3) How to avoid duplicate allocation?  If I want some particular RGB
combination, is there a way to check for a previously allocated one,
or should I just allocate away and not worry?

Thanks,
-Brett.



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:09 MET