“f5159f94c9273be56157b5a47a8910e97280463f”上不存在“git@gitcode.net:dcloud/unidocs-zh.git”
added color customization
The coders are able to set the tracer’s colors to anything they want! Since I use the style background color attribute on the div it can accept a wide variety of values for the background color. I first wanted to pass in some color value when calling notify or select but then I realized there is a lot of issues with the amount of parameters . So I thought of doing some sort of global set like the HTML canvas/context does. Tracer now has 5 new methods for setting the colors. _Set(name)FillColor(color_goes_here). The logic of the setting fillColor and it being displayed should be similar to the canvas/context fillStyle setting. It will keep using that color until the color is switched again. I had to change the clear method inside array2d.js also to handle the new coloring change.
Showing
想要评论请 注册 或 登录