You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -226,10 +226,14 @@ See [example](https://harshkhandeparkar.github.io/gpujs-real-renderer).
226
226
##### Properties (Read-Only)
227
227
- `brushSize` (*number*): The radius of the drawing brush. The size is measured in the board's
228
228
arbitrary coordinate system.
229
-
- `brushColor` (*array*): The color of the brush in the corm`[red, green, blue]` where each of
229
+
- `brushColor` (*array*): The color of the brush in the form`[red, green, blue]` where each of
230
230
`red`, `green` and `blue` are between 0 and 1.
231
231
- `eraserSize` (*number*): Size of the eraser.
232
232
- `tool` ('brush' | 'rainbow_brush' | 'eraser' | 'line'): The current tool used on the board. This tool can be set in the options or using the `changeTool` method.
233
+
- `brush`: Normal brush which uses the `brushColor` property as the color.
234
+
- `rainbow_brush`: Brush with continuously changing color.
235
+
- `eraser`: Erases.
236
+
- `line`: Draws a line with `brushColor` property as the color.
233
237
234
238
##### Options
235
239
Since this is a child class of `RealRenderer`, all the options of `RealRender` are applicable here as well.
0 commit comments