Closed MohsnRaj closed 2 years ago
All of my lines in my canvas change color when i change for one line. this is how i set color for line. in my uselayoutEffect i add this line : ` context.fillStyle = lineColor;
` linecolor is a state that i get of user .
Sorry, not related to perfect-freehand. Chances are you’re forgetting to call context.beginPath before each line.
All of my lines in my canvas change color when i change for one line. this is how i set color for line. in my uselayoutEffect i add this line : ` context.fillStyle = lineColor;
` linecolor is a state that i get of user .