diff options
| author | Jules Laplace <jules@okfoc.us> | 2015-07-15 19:56:39 -0400 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2015-07-15 19:56:39 -0400 |
| commit | 4bd53e69ea016d30147d6cb4c84ae264ab819b55 (patch) | |
| tree | 20478b3bb4606dd22d8313717867305c905ac25b /js/clipboard.js | |
| parent | 31681feba8709707c1042e925399c1530be00c65 (diff) | |
renaming MircColor/color_code.js to photo.js
Diffstat (limited to 'js/clipboard.js')
| -rw-r--r-- | js/clipboard.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/js/clipboard.js b/js/clipboard.js index bcbfdff..b8b583e 100644 --- a/js/clipboard.js +++ b/js/clipboard.js @@ -205,6 +205,16 @@ var clipboard = (function () { clipboard.focus() return output }, + + export_png: function () { + var palette = 'mirc' + var font = 'fixedsys' + + var start = Date.now(); + colorcode.to_canvas(in_text.value, {canvas:canvas, palette:palette, font:font}) + var total = Date.now() - start; + console.log("took " + total) + } } |
