Color Reference Guide

Introduction

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:

  • Standard color names (e.g., red, blue, green)
  • Hexadecimal color codes (e.g., #FF0000 for red)
Tip: When using hexadecimal color codes in YAML, always enclose them in quotes to prevent parsing errors (e.g., color: "#FF0000").

Standard Colors

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

Custom Colors

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.

Important: When using hexadecimal color codes in your YAML configuration, always enclose them in quotes to prevent parsing errors.
- layer_number: 4/0
  name: custom_color_layer
  thickness: 3.0
  z: 10.0
  operation: add
  color: "#1E90FF"  # Dodger Blue

Usage Examples

Here are some examples of how to specify colors in your YAML configuration:

Example: Using Standard Colors
- layer_number: 1/0
  name: substrate
  thickness: 500.0
  z: 0.0
  operation: substrate
  color: gray  # Standard color name
Example: Using Hexadecimal Color Codes
- layer_number: 3/0
  name: custom_layer
  thickness: 2.0
  z: 2.0
  operation: add
  color: "#9370DB"  # Medium Purple, hexadecimal color code