Skip to content

Commit

Permalink
Color example.
Browse files Browse the repository at this point in the history
  • Loading branch information
smimram committed Nov 27, 2023
1 parent 81cc625 commit 659619e
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 22 deletions.
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,17 @@ Their vertical position can be adjusted with the `position` parameter (between

## Colors on operators

Colors can be specified with `fill=color` option, e.g.
The color of operators and wire can be changed with `color=...` options, e.g.

```
\twocell{((1->1)["\alpha",color=red] * 1) * (1[color=red] * (1->1)["\beta"])}
```

typesets

![](fig/color.svg)

Filling colors can also be specified with `fill=color` option, e.g.

![](fig/fill.svg)

Expand Down
25 changes: 25 additions & 0 deletions fig/color.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions fig/color.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
\documentclass{standalone}
\usepackage{satex}
\usepackage{common}

\begin{document}
$
\twocell{((1->1)["\alpha",color=red] * 1) * (1[color=red] * (1->1)["\beta"])}
$
\end{document}
40 changes: 19 additions & 21 deletions fig/fill.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 659619e

Please sign in to comment.