HOW TO
Color can be applied to shapes in CityEngine by creating a rule file and using the color operation along with the appropriate RGB value or hexadecimal value.
In this example, red color is applied to a 'lot' shape. These steps assume a CityEngine project is open with lot shapes in the Viewport window.
![[O-Image]](https://webapps-cdn.esri.com/CDN/support-site/technical-articles-images/000012362/00N39000003LL2C-0EM39000000wdaj.png)
Lot --> color(255,0,0)
Lot --> color("#FF0000")
![[O-Image]](https://webapps-cdn.esri.com/CDN/support-site/technical-articles-images/000012362/00N39000003LL2C-0EM39000000wdap.png)
![[O-Image]](https://webapps-cdn.esri.com/CDN/support-site/technical-articles-images/000012362/00N39000003LL2C-0EM39000000wdai.png)
Common Hexadecimal Values Aqua = "#00FFFF" Blue = "#0000FF" Black = "#000000" ForestGreen = "#228B22" Gray = "#808080" Green = "#008000" Lime Green = "#00FF00" Red = "#FF0000" Yellow = "#FFFF00" White = "#FFFFFF"
Common RGB Values Aqua = 0, 255, 255 Blue = 0, 0, 255 Black = 0, 0, 0 Forest Green = 34, 139, 34 Gray = 128, 128, 128 Green = 0, 128, 0 Lime Green = 0, 255, 0 Red = 255, 0, 0 Yellow = 255, 255, 0 White = 255, 255, 255
Article ID: 000012362
Get help from ArcGIS experts
Start chatting now