// SPDX-License-Identifier: MIT // Copyright (c) 2026 Incoprea // Calculate a frame aperture with mat borders // Not compiled or tested in-world // Setup: Put in a spare owned prim. Set image width/height, overlap, mat width and frame width. Touch to print the plan privately. // Stop / restore: Remove/disable; calculations do not alter objects. // Notes: Overlap must leave positive visible image dimensions; borders are symmetric. // License: see LICENSE in this distribution. // Original Incoprea. MIT. Calculation only. float IMAGE_W=2.0; float IMAGE_H=1.4; float OVERLAP=0.02; float MAT=0.15; float FRAME=0.08; default { touch_start(integer detectedCount) { if(llDetectedKey(0)!=llGetOwner())return; if(IMAGE_W<=2.0*OVERLAP||IMAGE_H<=2.0*OVERLAP||OVERLAP<0.0||MAT<0.0||FRAME<0.0) { llOwnerSay("Invalid frame inputs."); return; } float apertureW=IMAGE_W-2.0*OVERLAP; float apertureH=IMAGE_H-2.0*OVERLAP; llOwnerSay("Aperture="+(string)+" outer="+(string)); } }