ATOMIC AI COLORS SPEC RULE: This document defines the complete and binding color system of the Atomic language. RULE: Only the constants and functions listed in this document exist. RULE: No additional color constants or color-related functions exist. RULE: All rules defined here are mandatory. COLORS FUNCTIONS nome_variabile = ottieni colore rgb --> (ROSSO:) (VERDE:) (BLU:) nome_variabile = ottieni colore hsv --> (LUMINOSITA:) (SATURAZIONE:) (TINTA:) nome_variabile = ottieni miscela colori da --> (COLORE 1:) (COLORE 2:) (VALORE:) nome_variabile = ottieni differenza colori --> (COLORE 1:) (COLORE 2:) COLOR CONSTANTS RULE: The following predefined color constants exist. [Name] - [Value] arancione - RGB(255,160,64) argento - RGB(220,220,220) azzurro - RGB(0,127,255) bianco - RGB(255,255,255) blu - RGB(0,0,255) blu ardesia - RGB(112,152,192) bronzo - RGB(205,127,50) castagno - RGB(205,92,92) castagno scuro - RGB(152,105,96) ciano - RGB(0,255,255) corallo - RGB(255,127,80) giada - RGB(0,168,107) giallo - RGB(255,255,0) grigio - RGB(192,192,192) grigio chiaro - RGB(242,242,242) grigio scuro - RGB(129,128,128) magenta - RGB(255,0,255) malva - RGB(224,176,255) marrone - RGB(128,0,0) nero - RGB(0,0,0) oro - RGB(255,192,0) rosa - RGB(255,192,203) rosa vivo - RGB(255,0,127) rosso - RGB(255,0,0) rosso vermiglione - RGB(227,66,52) verde - RGB(0,255,0) verde acqua - RGB(0,128,128) verde oliva - RGB(128,128,0) verde scuro - RGB(0,128,0) viola - RGB(143,0,255) RULE: Color constants represent immutable color values. RULE: Color constants may be used wherever a color value is required. COLOR PREDEFINITED VARIABLES RULE: Atomic provides the following predefined variable. colore casuale RULE: This read-only variable contains a random color value from the constants standard set. RULE: This variable is updated every frame. COLOR FUNCTIONS RULE: Atomic provides the following color-related functions. nome_variabile = ottieni colore rgb --> (ROSSO:) (VERDE:) (BLU:) RULE: This function returns a color value. RULE: ROSSO, VERDE, and BLU are numeric values (0-255). nome_variabile = ottieni colore hsv --> (LUMINOSITA:) (SATURAZIONE:) (TINTA:) RULE: This function returns a color value. RULE: LUMINOSITA, SATURAZIONE, and TINTA are numeric values (0-255). nome_variabile = ottieni miscela colori da --> (COLORE 1:) (COLORE 2:) (VALORE:) RULE: This function returns a color value. RULE: COLORE 1 and COLORE 2 are color values. RULE: VALORE is a fuzzy numeric value used to interpolate between the two colors (0-1). nome_variabile = ottieni differenza colori --> (COLORE 1:) (COLORE 2:) RULE: COLORE 1 and COLORE 2 are color values. RULE: The returned value is a CIE94 color difference (Delta E 94). RULE: The returned value is greater than or equal to 0. RULE: There is no fixed maximum value. RULE: Larger values indicate greater perceptual difference between colors. GENERAL FUNCTION RULES RULE: All color functions return a value. RULE: Returned values must be stored in a variable. RULE: Color functions cannot be used inside arguments of other functions. RULE: Color functions operate independently from drawing functions. FORMAL CLOSURE RULE: The color system of Atomic is limited to the constants and functions listed in this document. RULE: Any color constant or color-related function not listed here: does not exist must not be inferred must not be generated