Function: createAnnotationColor()
Less than 1 minute
@ghentcdh/vue-component-annotated-text / createAnnotationColor
Function: createAnnotationColor()
createAnnotationColor(
color
,config?
):AnnotationColor
Defined in: utils/createAnnotationColor.ts:57
Creates an annotation color configuration based on the provided color and optional configuration.
Parameters
color
string
The base color in hexadecimal format.
config?
Config
Optional configuration object to override default opacity settings.
Returns
The generated annotation color configuration.