disjukr / croquis.js

HTML5 drawing tool library

Home Page:https://croquisjs.0xabcdef.com/example/common-brush

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

allow Croquis.Brush.setColor() to take a function

derikson opened this issue · comments

Please consider allowing the argument to Croquis.Brush.setColor() to be a function that provides a color. This would allow one to make a brush that changes colors as it is used. Currently it doesn't seem possible to change the brush mid-move.