// SPDX-License-Identifier: MIT // Copyright (c) 2026 Incoprea // Read a face color as HEX // Not compiled or tested in-world // Setup: Set FACE and place in the prim whose classic tint you want to inspect. // Stop / restore: Remove or disable; no setting is changed. // Notes: This reports the stored tint, not a sampled rendered pixel. Lighting, texture pixels, and material color spaces can make the visible surface different. // License: see LICENSE in this distribution. // Original Incoprea example. MIT. Not compiled or tested in-world. integer FACE = 0; string digits = "0123456789ABCDEF"; string channelHex(float value) { integer byte = llRound(value * 255.0); return llGetSubString(digits, byte / 16, byte / 16) + llGetSubString(digits, byte % 16, byte % 16); } default { touch_start(integer count) { if (llDetectedKey(0) != llGetOwner()) return; vector color = llGetColor(FACE); llOwnerSay("RGB " + (string)color + " | #" + channelHex(color.x) + channelHex(color.y) + channelHex(color.z)); } }