in reply to [Unresolved] Curses::UI define_color

G'day return0,

While the Curses::UI::Color documentation is accurate when it says "The RGB values can be between 0 and 1000.", it's misleading as it doesn't indicate that's an exclusive range: the actual range of numbers available to you is 1..999.

A pragmatic solution would be to use 1 instead of 0: the difference in colour would be imperceptible to the human eye. Alternatively, if the exact colour is important, you could modify the module.

More as an afterthought, it's possible the RGB values you need for orange are more like 999,599,1 (I think 255,155,0 would be very dark). I'll leave you to experiment.

-- Ken

Replies are listed 'Best First'.
Re^2: Curses::UI define_color
by return0 (Acolyte) on Apr 16, 2013 at 12:05 UTC
    oh thank you! I didn't even look at the source code for this yet;I was really busy yesterday. I see it now:
     return unless $b > 0;
    Okay, I get it, and you're right about not seeing the difference, I remember that from Steganography 101. You guys are the best! thank you! :D