acad_torgb

acad_torgb(idx: stringa)


Dato un colore di AutoCAD ne ritorna il valore RGB come intero a 32 bit nel formato Windows COLORREF 0x00BBGGRR (rosso nel byte meno significativo, NON 0x00RRGGBB).


Esempio 1. Esempio acad_torgb

local col = acad_torgb(3)   -- da indice ACI a componenti RGB
print("\nR=" .. col.r .. " G=" .. col.g .. " B=" .. col.b)

Created with the Personal Edition of HelpNDoc: Make Your PDFs More Secure with Encryption and Password Protection