When configuring your GDS to STEP conversion, you can assign different colors to each layer. These colors will be preserved in the 3D model and exported to formats like GLB that support color information.
Colors can be specified in your YAML configuration file using one of the following methods:
red
, blue
, green
)#FF0000
for red)color: "#FF0000"
).
These standard color names are recognized by the converter:
red
#FF0000
green
#00FF00
blue
#0000FF
yellow
#FFFF00
cyan
#00FFFF
magenta
#FF00FF
black
#000000
white
#FFFFFF
gray
#808080
orange
#FFA500
purple
#800080
brown
#A52A2A
You can specify custom colors using hexadecimal color codes in the format #RRGGBB
,
where RR, GG, and BB are hexadecimal values for the red, green, and blue components.
- layer_number: 4/0
name: custom_color_layer
thickness: 3.0
z: 10.0
operation: add
color: "#1E90FF" # Dodger Blue
Here are some examples of how to specify colors in your YAML configuration:
- layer_number: 1/0
name: substrate
thickness: 500.0
z: 0.0
operation: substrate
color: gray # Standard color name
- layer_number: 3/0
name: custom_layer
thickness: 2.0
z: 2.0
operation: add
color: "#9370DB" # Medium Purple, hexadecimal color code