Skip to content

Commit

Permalink
readme
Browse files Browse the repository at this point in the history
  • Loading branch information
BPing committed May 31, 2017
1 parent eb1916c commit a51106b
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 3 deletions.
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,17 @@ a web drawing board with canvas
> demo: [https://home.cbping.vip/crysyan/demo-index.html](https://home.cbping.vip/crysyan/demo-index.html)
# install
`nodejs`

```cmd
- node install crysyan -g
- crysyan
visit http://locolhost:9001 with browser
```

![project demo](https://github.com/BPing/crysyan/blob/master/doc/img/crysyan-png.png?raw=true)

# <a name="index"/>Index
* [Compatibility](#Compatibility)
Expand Down
Binary file added doc/img/crysyan-png.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
<body>

<div style="height:760px;" class="crysyan-designer">
<a id="download-png" download="my-file-name.png" style="color: #ff0206" class="btn btn-github">download png</a>
<button type="button" id="start-record">start-record</button>
<button id="stop-record">stop-record</button>
</div>
Expand All @@ -60,6 +61,11 @@

}
}, function (designer) {
$("#download-png").click(function () {
var canvas = designer.getView().crysyanCanvas;
document.getElementById("download-png").href = canvas.toDataURL();
});

console.dir(designer);
var image = new Image();
image.src = "http://dream.com:9977/img/pencil.png";
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "crysyan",
"version": "0.1.5",
"version": "0.1.7",
"description": "a web drawing board with canvas",
"main": "server.js",
"directories": {
Expand Down

0 comments on commit a51106b

Please sign in to comment.