mirror of
https://github.com/adriancooney/console.snapshot.git
synced 2025-12-08 21:26:19 +00:00
rt to gt.. sigh
This commit is contained in:
parent
a83f26871f
commit
6174e4c4a5
@ -1,12 +1,12 @@
|
||||
# console.snapshot( _canvas_ )
|
||||
### Snapshot a canvas and output it to the console.
|
||||
|
||||
`console.snapshot` takes and inputted _<canvas&rt;_ element and outputs a snapshot of it into the console. It makes debugging the canvas a less dramatic task. See [this demo](http://dunxrion.github.io/console.snapshot). `console.snapshot` is a fork of the [`console.image`](http://github.com/dunxrion/console.image) and actually does something useful.
|
||||
`console.snapshot` takes and inputted _<canvas>_ element and outputs a snapshot of it into the console. It makes debugging the canvas a less dramatic task. See [this demo](http://dunxrion.github.io/console.snapshot). `console.snapshot` is a fork of the [`console.image`](http://github.com/dunxrion/console.image) and actually does something useful.
|
||||
|
||||

|
||||
|
||||
## Usage
|
||||
### console.snapshot( _<canvas&rt;_ )
|
||||
### console.snapshot( _<canvas>_ )
|
||||
`console.snapshot` takes in a `HTMLCanvasElement`, base64 encodes it using `toDataURL` and then outputs it to the canvas using `canvas.image`.
|
||||
|
||||
```js
|
||||
@ -20,7 +20,7 @@ var canvas = document.createElement("canvas"),
|
||||
console.snapshot(canvas);
|
||||
```
|
||||
|
||||
### console.image( _<url&rt;_ )
|
||||
### console.image( _<url>_ )
|
||||
`console.image` outputs and image from a url into the console. See [console.image](http://github.com/dunxrion/console.image).
|
||||
|
||||
```js
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user