Skip to content

Commit

Permalink
可改变画笔颜色、粗细
Browse files Browse the repository at this point in the history
键R-红色,B-蓝色,M-洋红色,G-绿色,Y-黄色。数字键1、2、3、4四种粗细。
  • Loading branch information
jmxhyz committed Aug 11, 2015
1 parent 2e8585e commit a498e92
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions assets/js/nodeppt.control.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@
t.sendKeyEvent(67);
}).on('paint points', function(points) {
var data = {
pencolor: $doc.getElementById("drawBoard").context.strokeStyle, //画笔颜色
penlineWidth: $doc.getElementById("drawBoard").context.lineWidth, //画笔宽度
points: points,
screen: {
width: $doc.body.offsetWidth,
Expand Down

0 comments on commit a498e92

Please sign in to comment.