Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
GuillaumeLaplante-Anfossi
GitHub Repository: GuillaumeLaplante-Anfossi/Poissons
Path: blob/main/paper/figures/RFF.tex
1017 views
1
%author : berenice delcroix-oger
2
%colors of rainbow trees
3
\documentclass[border=2pt]{standalone}
4
\usepackage{tikz}
5
\usetikzlibrary{positioning, fit, shapes, arrows, calc}
6
7
\pgfdeclarelayer{bg} % declare background layer
8
\pgfsetlayers{bg,main} % set the order of the layers (main is the standard layer)
9
10
\newcommand{\coula}{0785F2}
11
\newcommand{\coulb}{F29F05}
12
\newcommand{\coulc}{F21313}
13
\newcommand{\could}{E6F21F}
14
15
16
17
\definecolor{bleu}{HTML}{0000FF}
18
\definecolor{vert}{HTML}{39B44B}
19
\definecolor{rouge}{HTML}{FF0000}
20
21
22
23
\definecolor{part1}{HTML}{\coula}
24
\definecolor{part2}{HTML}{\coulb}
25
\definecolor{part3}{HTML}{\coulc}
26
\definecolor{part4}{HTML}{\could}
27
28
\begin{document}
29
\begin{tikzpicture}[grow=up, inner sep=1pt, outer sep=0pt, level distance=1cm, sibling distance=15pt]
30
\node[draw, circle] {$1$}
31
child[thick]{node[circle, fill=rouge, fill opacity=0.4, text opacity=1, anchor=center] {$5$}
32
child{node[circle, fill=bleu, fill opacity=0.4, text opacity=1] {$3$}}
33
child{node[circle, fill=vert, fill opacity=0.4, text opacity=1] {$4$}}
34
};
35
\end{tikzpicture}
36
\begin{tikzpicture}[grow=up, inner sep=1pt, level distance=1cm, sibling distance=15pt, outer sep=0pt]
37
\node[draw, circle] {$2$}
38
child[thick]{node[circle, fill=bleu, fill opacity=0.4, text opacity=1, anchor=center] {$6$}
39
child{node[circle, fill=vert, fill opacity=0.4, text opacity=1] {$9$}}
40
child{node[circle, fill=vert, fill opacity=0.4, text opacity=1] {$8$}}
41
child{node[circle, fill=rouge, fill opacity=0.4, text opacity=1] {$7$}}
42
}
43
child[thick]{node[circle, fill=rouge, fill opacity=0.4, text opacity=1, anchor=center] {$10$}}
44
;
45
\end{tikzpicture}
46
47
\end{document}
48
49