########
Examples
########

********
Tutorial
********

The following code is a sample to quickly demonstrate some features of gdspy.

:download:`Download sample file <../examples/tutorial.py>`

.. literalinclude:: ../examples/tutorial.py
   :language: python
   :linenos:

********************
Integrated Photonics
********************

This example demonstrates the use of gdspy primitives to create more complex structures.

These structures are commonly used in the field of integrated photonics.

:download:`Download sample file <../examples/photonics.py>`

.. literalinclude:: ../examples/photonics.py
   :language: python
   :linenos:

