Currently the user can set brush color with useBrush hook.
However, since setBrushColor in Canvas.tsx can be called after the canvas element is mounted, I have added an initBrushColor prop to handle initially passed brush colors.
The problem is that this adds confusion to users. Maybe we could integrate setting brush color and initBrushColor prop into one?
Currently the user can set brush color with
useBrush
hook.However, since
setBrushColor
in Canvas.tsx can be called after the canvas element is mounted, I have added aninitBrushColor
prop to handle initially passed brush colors.The problem is that this adds confusion to users. Maybe we could integrate setting brush color and
initBrushColor
prop into one?This issue is closely related to issue #17