nb3 : GUI : Colorize : Decimals (tenth, hundredth)

thoolb's Avatar


29 Nov, 2013 09:08 PM

The NB ability to specify even decimals in HSB color definition appears to run into irritations. Such sensitive color seems to result in an obvious but unwanted jump on screen between hundrtedths of one value. See in screenshots below: Red changes 1 hundredth only but visually/suddenly jumps to green.

  1. Support Staff 1 Posted by Frederik De Ble... on 02 Dec, 2013 10:10 AM

    Frederik De Bleser's Avatar

    This is very weird. I guess this relates to a rounding error in Java's color management. No idea how to solve this at the moment, though.

    Could you compare the hex values with the ones in Photoshop? Which one is correct?

  2. 2 Posted by thoolb on 02 Dec, 2013 09:13 PM

    thoolb's Avatar

    Photoshop does – in any color space – not allow to define colors with decimals like NodeBox does, instead it auto-rounds those to the next integer. I guess the irritation might come from the Alpha value in NodeBox or/andf from its ability to enter even decimals (tenth, hundredth) for RGB values when the color range is set to 0-100 (not: 0-255).

    Here's tool to convert them all, Alpha included; only HSB enables decimals (tenth, not hundreth), RGB does integers only: http://colorizer.org/

    Thoughts about java script and color convertion (which I don't understand myself;):

    (p.s.: even Adobe Suite's various apps convert between color spaces from same input values to different results, depending on the suite's app)

  3. 3 Posted by thoolb on 02 Dec, 2013 11:15 PM

    thoolb's Avatar

    I just tried to repeat the occurency with some retcs with 10% alpha and the two color definitons mentioned above, copied either 10x and 100x.

    In this sample it appears that I can not set the color as mentioned in the topic:
    once I set this values r 18.62 / g 9/ b 0 – alpha 10
    then go to set the next sample and come back to the first then its color got set to 18.84/9.02/0 – alpha 10.2

    (I attach color-rgb-decimals.ndbx)

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Already uploaded files

  • color_GUI_NB307_1.jpg 100 KB
  • color_GUI_NB307_2.jpg 105 KB

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

22 Feb, 2024 05:51 AM
22 Feb, 2024 01:11 AM
21 Feb, 2024 05:27 PM
21 Feb, 2024 04:49 PM
16 Feb, 2024 05:24 PM


06 Feb, 2024 04:45 AM
19 Jan, 2024 09:50 AM
13 Jan, 2024 03:47 AM
05 Jan, 2024 05:10 PM
05 Jan, 2024 04:54 PM
04 Jan, 2024 11:49 PM