gdstk.cross

gdstk.cross(center, full_size, arm_width, layer=0, datatype=0) gdstk.Polygon

Create a cross shape.

Parameters:
  • center (coordinate pair or complex) – Center of the cross.

  • full_size (number) – Total length of the cross.

  • arm_width (number) – Width of the arms.

  • layer – layer number assigned to this polygon.

  • datatype – data type number assigned to this polygon.

Examples

>>> cross1 = gdstk.cross((0, 0), 10, 1)
>>> cross2 = gdstk.cross((0.5, 0.5), 5, 0.75, layer=1)
../_images/cross.svg