Function: resolvePalette()
resolvePalette(
background,text?):AnnotationPalette
Defined in: src/mobjects/annotation/annotationStyle.ts:89
Build a palette from the background. The text colour is the active theme's stroke colour when it reads on the background (contrast >= 4.5), else white on a dark background and near-black on a light one.
Parameters
background
string
text?
string