-
Notifications
You must be signed in to change notification settings - Fork 1
Home
Mahdi devil edited this page Mar 3, 2026
·
1 revision
Welcome to the Nexus wiki!
// این تابع را به انتهای فایل اضافه کن و قبل از بازگشت تصویر فراخوانی کن
const applyNexusSeal = (base64Data: string) => {
const canvas = document.createElement('canvas');
const ctx = canvas.getContext('2d');
const img = new Image();
img.src = data:image/jpeg;base64,${base64Data};
return new Promise((resolve) => { img.onload = () => { canvas.width = img.width; canvas.height = img.height; ctx?.drawImage(img, 0, 0);
// حک کردن لوگو/متن نکسوس با فونت نوری
ctx!.fillStyle = "rgba(255, 215, 0, 0.5)";
ctx!.font = "bold 24px Orbitron";
ctx?.fillText("NEXUS AWAKENED", canvas.width - 250, canvas.height - 40);
resolve(canvas.toDataURL('image/jpeg').split(',')[1]);
};
}); };