// Attributes attr Q_GRONDA = "" # string ! attr STANZA = "" // Functions red = "#ffaaaa" green = "#aaffaa" blue = "#aaaaff" turquoise = "#ooebeb" white = "#ffffff" yellow = "#ffff73" grey = "#9c9c9c" // Start ! @StartRule Lot --> extrude (float (Q_GRONDA)) Colorizer Colorizer--> case STANZA == "4_1" : color(red) Continue case STANZA == "7_2" : color(yellow) Continue case STANZA == "1_3" : color(blue) Continue case STANZA == "4_3" : color(green) Continue else : color(white) Continue Continue --> comp(f) { side : Facade. | top : roofHip(30,0.5) Roof. }
Whats the code for the color Gray?
set (material.opacity, 0.3)
attr myAttr = "" # point source to object attr ( gis data ) colorFunction(colorChannel) = case myAttr == "string_1" : case colorChannel == "r" : .3 case colorChannel == "g" : .4 else : 0.5 # b case myAttr == "string_2" : case colorChannel == "r" : .2 case colorChannel == "g" : .7 else : 1 #b else : .. Lot --> color (colorFunction("r"),colorFunction("g"),colorFunction("b") )
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.