You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
295 B
14 lines
295 B
4 years ago
|
function draw() {
|
||
|
var Canvas = require('canvas'),
|
||
|
Image = Canvas.Image,
|
||
|
canvas = new Canvas(200, 200),
|
||
|
ctx = canvas.getContext('2d');
|
||
|
|
||
|
ctx.font = '30px Impact';
|
||
|
ctx.rotate(0.1);
|
||
|
ctx.fillText('Awesome!', 50, 100);
|
||
|
|
||
|
return canvas;
|
||
|
}
|
||
|
|
||
|
module.exports = draw;
|