Skip to content

@fabwcie/free-drawing / utils/color / toFill

Function: toFill() ​

toFill(color): ColorLike | undefined

Defined in: packages/free-drawing/src/utils/color.ts:11

Konva fill of a background color: none when transparent, so inside is not hit (eraser), as before fill colors

Parameters ​

color ​

ColorLike

background color (fillColor option or chosen color)

Returns ​

ColorLike | undefined

the color, undefined when transparent