getContrastToBackgroundColor Method
Get a color that will contrast to the current background color of this Viewport. Either Black or White depending on which will have the most contrast.
getContrastToBackgroundColor(): ColorDef
Returns - ColorDef
Defined in
- core/frontend/src/Viewport.ts Line 2400
Last Updated: 17 December, 2024
Found something wrong, missing, or unclear on this page?Raise an issue in our repo.