Kaynağa Gözat

Add a watermark to screenshots

tags/v0.1.0
Fen Dweller 6 yıl önce
ebeveyn
işleme
6292758994
1 değiştirilmiş dosya ile 7 ekleme ve 0 silme
  1. +7
    -0
      macrovision.js

+ 7
- 0
macrovision.js Dosyayı Görüntüle

@@ -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({


Yükleniyor…
İptal
Kaydet