sharingan
use html5canvas
copy the screen and draw something
params
name | desc | type | default |
---|---|---|---|
type | type of drawing , one of pen line rect circle |
string |
pen |
color | color of drawing | string |
red |
linewidth | width of line | number |
2 |
style | style of drawing | string |
stroke |
scale | scale | number |
1 |
element | the element to copy | element |
- |
target | the target canvas | element |
- |
usage
; var s; { s = scale: 06 element: document target: document ; s;}
License
MIT