# Vertical braid with colored strands

> Four vertical strands, each in its own color, so you can follow where each one ends. A braids example with its LaTeX source.

A braids example in the TeXeR TikZ library: https://texer.org/library/braids/braid-vertical-colored

Package: [braids](https://texer.org/library/braids.md), on CTAN at https://ctan.org/pkg/braids.

Tags: braid, colored strands, vertical

## Source

```latex
\usetikzlibrary{braids}

\begin{tikzpicture}
  \pic[
    braid/.cd,
    every strand/.style={ultra thick},
    strand 1/.style={blue!70!black},
    strand 2/.style={orange!85!black},
    strand 3/.style={green!50!black},
    strand 4/.style={red!70!black},
  ] {braid={s_1 s_3 s_2^{-1} s_1 s_3}};
\end{tikzpicture}
```

## As a complete document

The same example in a document that compiles on its own with pdfLaTeX:

```latex
\documentclass[margin=3mm]{standalone}
\usepackage{tikz}
\usepackage{xcolor}
\usepackage{amsmath}
\usepackage{amssymb}
\usetikzlibrary{braids}

\begin{document}

\begin{tikzpicture}
  \pic[
    braid/.cd,
    every strand/.style={ultra thick},
    strand 1/.style={blue!70!black},
    strand 2/.style={orange!85!black},
    strand 3/.style={green!50!black},
    strand 4/.style={red!70!black},
  ] {braid={s_1 s_3 s_2^{-1} s_1 s_3}};
\end{tikzpicture}
\end{document}
```
