// SPDX-License-Identifier: MIT // Copyright (c) 2026 Incoprea // Preview a simple CMYK-to-RGB conversion // Not compiled or tested in-world // Setup: Use a spare owned prim. Set CYAN/MAGENTA/YELLOW/BLACK each0..1. Touch for owner-only numeric output. // Stop / restore: Remove/disable; no colors or materials are applied. // Notes: This is not color-managed printing conversion and cannot replace an ICC profile. // License: see LICENSE in this distribution. // Original Incoprea. MIT. Color calculation only. float CYAN=0.2; float MAGENTA=0.5; float YELLOW=0.1; float BLACK=0.15; default { touch_start(integer detectedCount) { if(llDetectedKey(0)!=llGetOwner())return; if(CYAN<0.0||CYAN>1.0||MAGENTA<0.0||MAGENTA>1.0||YELLOW<0.0||YELLOW>1.0||BLACK<0.0||BLACK>1.0) { llOwnerSay("Channels must be0..1."); return; } llOwnerSay("Approximate RGB="+(string)<(1.0-CYAN)*(1.0-BLACK),(1.0-MAGENTA)*(1.0-BLACK),(1.0-YELLOW)*(1.0-BLACK)>); } }