Rhino BETA Feature: Black / White Switching

Black / White Switching

What is Black / White Switching?

When Black/White Switching is selected, a curve or an object wire whose assigned color is pure black or pure white will display in the opposite color when necessary to remain visible against the viewport background.

Why use Black / White Switching?

Users working in CAD applications are expect white objects to appear black on a white background, and conversely for black objects to appear white on a black background. This switch happens automatically in many CAD applications.

Automatic color display switching has been requested frequently by Rhino users. In previous Rhino versions, setting a layer or object to white against a white display resulted in the curves blending into the white background, and the same for black objects against a black background.


How to Enable Black/White Switching:
Go to: Tools → Options → Appearance → Colors. In the resulting Object Display section, enable Black/White Switching.

More Details:
Color switching occurs based on the brightness of the viewport background or layout paper color.

  • White curves and wires switch to black when the background brightness exceeds 70%.
  • Black curves and wires switch to white when the background brightness falls below 30%.
  • Brightness is not a configuration option per se. Rather, it is derived from Viewport Color options found in Tools → Options → Appearance → Colors → Viewport colors.
  • Dimension object masks are governed by the mask’s own color in the Annotation style, not the black/white rule. Be advised that the a black dimension inside a white mask may still vanish or not be displayed.

Resolved Issues

  • RH-95195
    Switches the text mask color, when Black/White switching is enabled.
  • RH-89734 and RH-95193
    Dynamic/preview draw color now respects Black/White switching. Object previews (rectangle, etc. via GetPoint) and, more recently, named preview commands: Tween Curve, Rebuild Curve, Linear/Rectangular Array, BlendCrv, Copy, Text, Insert. These commands no longer display objects to be invisible against a matching background while the command is running.
  • RH-89862 and RH-89863
    Highlight color and offset-preview color now respect Black/White switching. Selecting or offsetting a black object on a black background (or white-on-white) no longer makes it disappear.
  • Scripting/API access. EnableBlackWhiteSwitching is exposed on CRhinoAppAppearanceSettings and available in RhinoCommon (so Grasshopper/Python can read or toggle it). Nothing in the post mentions this, and this crowd includes a lot of scripting users.

Try It

Download Rhino BETA…
Coming soon!

Hi

The option does not work properly with most preview commands such as Tween Curve, Rebuild Curve, Linear Array, Rectangular Array, and BlendCrv , and Copy. These are the commands I tested; there may be others as well.

What about an additional option for rendering everything inside the viewport into their negative colours? Some graphics programs allow that.
It’s also a popular method to generate flashing effects in many 2d and 3d video games.

… As a result, providing only black and white options is limiting. Consider how users use different RGB/CMYK background colors, default colors assigned to a curve layer, and many other similar situations. Switching between B/W(or other matches) doesn’t help much because the colors aren’t stylistically compatible. If the same option produces a LIST = [random color matches] each time a user hits the button, that would work.

Thanks, @RedAlert.
We have logged:
RH-95193/Commands-Not-Black-White-Switching-Aware

We will let you know here there is a fix to test.

Sincerely,
Mary Ann Fugier

Hi @Federico_Scarlatti,
We moved Black/White display switch to it’s own Forum post above.
Thank you for posting here. This thread is now closed

For Black/White Switching, you should also consider that dimensions and text that use the mask are governed by the mask’s color. For example, if I’m in dark mode and I apply a white mask, and the dimension is black, I’ll see it as white on white. That is, I won’t see it.

We have logged:
RH-95195/Text-Mask-not-Black-White-Aware

We will let you know here when there is a fix to test.
Thanks again for testing!
Sincerely,
Mary Ann Fugier

RH-95195 is fixed in Rhino WIP

RH-95193 is fixed in Rhino WIP