Skip to content

Commit 8014d28

Browse files
author
HarshKhandeparkar
committed
docs: docs for line tool
1 parent ed1ed78 commit 8014d28

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ See [example](https://harshkhandeparkar.github.io/gpujs-real-renderer).
225225
- `brushColor` (*array*): The color of the brush in the corm `[red, green, blue]` where each of
226226
`red`, `green` and `blue` are between 0 and 1.
227227
- `eraserSize` (*number*): Size of the eraser.
228-
- `tool` ('brush' | 'eraser'): The current tool used on the board. This tool can be set in the options or using the `changeTool` method.
228+
- `tool` ('brush' | 'eraser' | 'line'): The current tool used on the board. This tool can be set in the options or using the `changeTool` method.
229229
230230
##### Options
231231
Since this is a child class of `RealRenderer`, all the options of `RealRender` are applicable here as well.
@@ -241,7 +241,7 @@ Apart from those, the following are additional options that can be passed on to
241241
242242
- `maxUndos`(*Number*) (Default: `15`): Determines the maximum possible undos. (Use a smaller number on devices with less RAM)
243243
244-
- `tool` (*'brush' | 'draw'*) (Default: `'brush'`): Determines which tool to use.
244+
- `tool` (*'brush' | 'draw' | 'line'*) (Default: `'brush'`): Determines which tool to use.
245245
246246
##### Methods
247247
Since this is a child class of `RealRenderer`, all the methods of `RealRender` are available here as well.

example/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ <h3># Drawing Board</h3>
4949
<select name="draw-tool" id="draw-tool" value="brush">
5050
<option value="brush">Brush</option>
5151
<option value="eraser">Eraser</option>
52+
<option value="line">Line</option>
5253
</select>
5354
<br />
5455

0 commit comments

Comments
 (0)