rt to gt.. sigh

This commit is contained in:
Adrian Cooney 2013-06-30 01:59:09 +01:00
parent a83f26871f
commit 6174e4c4a5

View File

@ -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.
![The demo](http://i.imgur.com/IYLD8pz.png)
## 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