Explorar el Código

Add a watermark to screenshots

tags/v0.1.0
Fen Dweller hace 5 años
padre
commit
6292758994
Se han modificado 1 ficheros con 7 adiciones y 0 borrados
  1. +7
    -0
      macrovision.js

+ 7
- 0
macrovision.js Ver fichero

@@ -2307,6 +2307,13 @@ function exportCanvas(callback) {

function copyScreenshot() {
renderToCanvas();

/** @type {CanvasRenderingContext2D} */
const ctx = document.querySelector("#display").getContext("2d");

ctx.fillStyle = "#555";
ctx.font = "normal normal lighter 16pt coda";
ctx.fillText("macrovision.crux.sexy", 10, 25);
exportCanvas(blob => {
navigator.clipboard.write([
new ClipboardItem({


Cargando…
Cancelar
Guardar