Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Sébastien Villemot
website
Commits
edf09158
Commit
edf09158
authored
Oct 18, 2018
by
Houtan Bastani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rework logo
parent
989744a0
Changes
17
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
120 additions
and
533 deletions
+120
-533
_config.yml
_config.yml
+2
-2
_includes/head/custom.html
_includes/head/custom.html
+7
-7
assets/images/logo/dbkgd.tex
assets/images/logo/dbkgd.tex
+4
-14
assets/images/logo/dfavicon.tex
assets/images/logo/dfavicon.tex
+2
-157
assets/images/logo/dlogo.tex
assets/images/logo/dlogo.tex
+11
-168
assets/images/logo/dlogo_hover.tex
assets/images/logo/dlogo_hover.tex
+11
-168
assets/images/logo/favicon/android-chrome-192x192.png
assets/images/logo/favicon/android-chrome-192x192.png
+0
-0
assets/images/logo/favicon/android-chrome-256x256.png
assets/images/logo/favicon/android-chrome-256x256.png
+0
-0
assets/images/logo/favicon/android-chrome-512x512.png
assets/images/logo/favicon/android-chrome-512x512.png
+0
-0
assets/images/logo/favicon/apple-touch-icon.png
assets/images/logo/favicon/apple-touch-icon.png
+0
-0
assets/images/logo/favicon/browserconfig.xml
assets/images/logo/favicon/browserconfig.xml
+1
-1
assets/images/logo/favicon/favicon-16x16.png
assets/images/logo/favicon/favicon-16x16.png
+0
-0
assets/images/logo/favicon/favicon-32x32.png
assets/images/logo/favicon/favicon-32x32.png
+0
-0
assets/images/logo/favicon/favicon.ico
assets/images/logo/favicon/favicon.ico
+0
-0
assets/images/logo/favicon/mstile-150x150.png
assets/images/logo/favicon/mstile-150x150.png
+0
-0
assets/images/logo/favicon/safari-pinned-tab.svg
assets/images/logo/favicon/safari-pinned-tab.svg
+79
-13
assets/images/logo/favicon/site.webmanifest
assets/images/logo/favicon/site.webmanifest
+3
-3
No files found.
_config.yml
View file @
edf09158
...
@@ -21,8 +21,8 @@ dynare_stable_version : "4.5.6"
...
@@ -21,8 +21,8 @@ dynare_stable_version : "4.5.6"
locale
:
"
en-US"
locale
:
"
en-US"
title
:
"
Dynare"
title
:
"
Dynare"
title_separator
:
"
|"
title_separator
:
"
|"
logo
:
/assets/images/logo/dlogo.
pn
g
logo
:
/assets/images/logo/dlogo.
sv
g
favicon
:
/assets/images/logo/dlogo_hover.
pn
g
favicon
:
/assets/images/logo/dlogo_hover.
sv
g
name
:
"
Dynare"
name
:
"
Dynare"
description
:
"
Dynare
is
a
software
platform
for
handling
a
wide
class
of
economic
models,
in
particular
dynamic
stochastic
general
equilibrium
(DSGE)
and
overlapping
generations
(OLG)
models"
description
:
"
Dynare
is
a
software
platform
for
handling
a
wide
class
of
economic
models,
in
particular
dynamic
stochastic
general
equilibrium
(DSGE)
and
overlapping
generations
(OLG)
models"
url
:
"
https://www.dynare.org/"
# the base hostname & protocol for your site e.g. "https://mmistakes.github.io"
url
:
"
https://www.dynare.org/"
# the base hostname & protocol for your site e.g. "https://mmistakes.github.io"
...
...
_includes/head/custom.html
View file @
edf09158
<link
rel=
"apple-touch-icon"
sizes=
"180x180"
href=
"/assets/images/logo/favicon/apple-touch-icon.png?v=oDLYBN9AkRNEo"
>
<link
rel=
"
icon"
type=
"image/png"
sizes=
"32x32
"
href=
"/assets/images/logo/favicon/
favicon-32x32.png?v=oDLYBN9AkRNEo
"
>
<link
rel=
"
apple-touch-icon"
sizes=
"180x180
"
href=
"/assets/images/logo/favicon/
apple-touch-icon.png?v=oLB3DDYYNNAARREEBjmkdd
"
>
<link
rel=
"icon"
type=
"image/png"
sizes=
"
16x16
"
href=
"/assets/images/logo/favicon/favicon-
16x16
.png?v=o
DLYBN9AkRNEo
"
>
<link
rel=
"icon"
type=
"image/png"
sizes=
"
32x32
"
href=
"/assets/images/logo/favicon/favicon-
32x32
.png?v=o
LB3DDYYNNAARREEBjmkdd
"
>
<link
rel=
"
manifest
"
href=
"/assets/images/logo/favicon/
site.webmanifest?v=oDLYBN9AkRNEo
"
>
<link
rel=
"
icon"
type=
"image/png"
sizes=
"16x16
"
href=
"/assets/images/logo/favicon/
favicon-16x16.png?v=oLB3DDYYNNAARREEBjmkdd
"
>
<link
rel=
"ma
sk-icon
"
href=
"/assets/images/logo/favicon/s
afari-pinned-tab.svg?v=oDLYBN9AkRNEo"
color=
"#5bbad5
"
>
<link
rel=
"ma
nifest
"
href=
"/assets/images/logo/favicon/s
ite.webmanifest?v=oLB3DDYYNNAARREEBjmkdd
"
>
<link
rel=
"shortcut icon"
href=
"/assets/images/logo/favicon/favicon.ico?v=o
DLYBN9AkRNEo
"
>
<link
rel=
"shortcut icon"
href=
"/assets/images/logo/favicon/favicon.ico?v=o
LB3DDYYNNAARREEBjmkdd
"
>
<meta
name=
"msapplication-TileColor"
content=
"#da532c"
>
<meta
name=
"msapplication-TileColor"
content=
"#da532c"
>
<meta
name=
"msapplication-config"
content=
"/assets/images/logo/favicon/browserconfig.xml?v=o
DLYBN9AkRNEo
"
>
<meta
name=
"msapplication-config"
content=
"/assets/images/logo/favicon/browserconfig.xml?v=o
LB3DDYYNNAARREEBjmkdd
"
>
<meta
name=
"theme-color"
content=
"#ffffff"
>
<meta
name=
"theme-color"
content=
"#ffffff"
>
<link
rel=
"stylesheet"
media=
"screen"
href=
"https://fontlibrary.org/face/quattrocento"
type=
"text/css"
/>
<link
rel=
"stylesheet"
media=
"screen"
href=
"https://fontlibrary.org/face/quattrocento"
type=
"text/css"
/>
...
...
assets/images/logo/dbkgd.tex
View file @
edf09158
\documentclass
[border=0mm,convert={density=
3
00,outext=.png}]
{
standalone
}
\documentclass
[border=0mm,convert={density=
9
00,outext=.png}]
{
standalone
}
\usepackage
{
tikz
}
\usepackage
{
tikz
}
\usetikzlibrary
{
decorations
}
\usetikzlibrary
{
decorations
}
\usetikzlibrary
{
decorations.pathreplacing,shapes.misc
}
\usetikzlibrary
{
decorations.pathreplacing,shapes.misc
}
...
@@ -155,19 +155,9 @@
...
@@ -155,19 +155,9 @@
\begin{document}
\begin{document}
\begin{tikzpicture}
\begin{tikzpicture}
\tikzset
{
\tikzset
{
shadowed/.style=
{
preaction=
{
transform canvas=
{
shift=
{
(-.
5
pt,-.
5
pt)
}}
,draw=black!25,
semithick
}}
,
shadowed/.style=
{
preaction=
{
transform canvas=
{
shift=
{
(-.
9
pt,-.
9
pt)
}}
,draw=black!25,
ultra thick,shade path=
{
left color=black!25, right color=black!0
}
}}
,
}
}
% irf
% Front
\draw
[draw=transparent!1, ultra thick, dynareirf, shade path=
{
left color=dynareirf!200, right color=dynareirf!0
}
, shadowed] plot [smooth] coordinates
{
(-.47,-.6) (0.19,0.55) (.7,-.4) (.94,-.21) (1.17,-.38) (1.38,-.29) (1.58,-.36) (1.78,-.31) (1.98,-.34) (2.18,-.32) (2.36,-.33)
}
;
\draw
[semithick, dynareirf] plot [smooth] coordinates
{
(-.47,-.6) (0.19,0.55) (.69,-.41) (.85,-.33)
}
;
\path
[draw=transparent!1, semithick, shade path=
{
left color=dynareirf!100, right color=dynareirf!0
}
]
(.85,-.33)
sin (.95,-.19) cos (1.07,-.33) sin (1.15,-.4) cos (1.28,-.33)
sin (1.4,-.29) cos (1.5,-.32) sin (1.6,-.37) cos (1.7, -.33)
sin (1.8,-.31) cos (1.88,-.33) sin (1.95,-.35) cos (2.04,-.33)
sin (2.17,-.32) cos (2.36,-.33) ;
\end{tikzpicture}
\end{tikzpicture}
\end{document}
\end{document}
assets/images/logo/dfavicon.tex
View file @
edf09158
\documentclass
[
border=0mm,convert={density=300,outext=.png}
]
{
standalone
}
\documentclass
[
tikz, convert={outext=.svg, command=\unexpanded{pdf2svg \infile\space\outfile}}, multi=false
]
{
standalone
}
\usepackage
{
tikz
}
\usepackage
{
tikz
}
\usetikzlibrary
{
decorations
}
\usetikzlibrary
{
decorations.pathreplacing,shapes.misc
}
\usetikzlibrary
{
fadings,decorations.pathmorphing
}
\usetikzlibrary
{
shadows
}
\usepackage
[default]
{
lato
}
\usepackage
[default]
{
lato
}
\usepackage
[T1]
{
fontenc
}
\usepackage
[T1]
{
fontenc
}
\makeatletter
% From https://tex.stackexchange.com/questions/137357/how-to-draw-an-arrow-with-two-colors
\newif\iftikz
@shading@path
\tikzset
{
% There are three circumstances in which the fading sep is needed:
% 1. Arrows which do not update the bounding box (which is most of them).
% 2. Line caps/joins and mitres that extend outside the natural bounding
% box of the path (these are not calculated by PGF).
% 3. Other reasons that haven't been anticipated.
shading xsep/.store in=
\tikz
@pathshadingxsep,
shading ysep/.store in=
\tikz
@pathshadingysep,
shading sep/.style=
{
shading xsep=#1, shading ysep=#1
}
,
shading sep=0.0cm,
}
\def\tikz
@shadepath#1
{
%
% \tikz@addmode installs the `modes' (e.g., fill, draw, shade)
% to be applied to the path. It isn't usualy for doing more
% changes to the path's construction.
\iftikz
@shading@path
%
\else
%
\tikz
@shading@pathtrue
%
% Get the current path.
\pgfgetpath\tikz
@currentshadingpath
%
% Get the shading sep without setting any other keys.
\begingroup
%
\pgfsys
@beginscope
% <- may not be necessary
\tikzset
{
#1
}
%
\xdef\tikz
@tmp
{
\noexpand\def\noexpand\tikz
@pathshadingxsep
{
\tikz
@pathshadingxsep
}
%
\noexpand\def\noexpand\tikz
@pathshadingysep
{
\tikz
@pathshadingysep
}}
%
\pgfsys
@endscope
%
\endgroup
\tikz
@tmp
%
% Get the boudning box of the current path size including the shading sep
\pgfextract
@process
\pgf
@shadingpath@southwest
{
\pgfpointadd
{
\pgfqpoint
{
\pgf
@pathminx
}{
\pgf
@pathminy
}}
%
{
\pgfpoint
{
-
\tikz
@pathshadingxsep
}{
-
\tikz
@pathshadingysep
}}}
%%
\pgfextract
@process
\pgf
@shadingpath@northeast
{
\pgfpointadd
{
\pgfqpoint
{
\pgf
@pathmaxx
}{
\pgf
@pathmaxy
}}
%
{
\pgfpoint
{
\tikz
@pathshadingxsep
}{
\tikz
@pathshadingysep
}}}
%
% Clear the path
\pgfsetpath\pgfutil
@empty
%
% Save the current drawing mode and options.
\let\tikz
@options@saved=
\tikz
@options
%
\let\tikz
@mode@saved=
\tikz
@mode
%
\let\tikz
@options=
\pgfutil
@empty
%
\let\tikz
@mode=
\pgfutil
@empty
%
% \tikz@options are processed later on.
\tikz
@addoption
{
%
\pgfinterruptpath
%
\pgfinterruptpicture
%
\begin{tikzfadingfrompicture}
[name=.]
\pgfscope
%
\tikzset
{
shade path/.style=
}
% Make absolutely sure shade path is not inherited.
\path
\pgfextra
{
%
% Set the softpath. Any transformations,draw=none} in #1 will have no effect.
% This will *not* update the bounding box...
\pgfsetpath\tikz
@currentshadingpath
%
% ...so it is done manually.
\pgf
@shadingpath@southwest
\expandafter\pgf
@protocolsizes
{
\the\pgf
@x
}{
\the\pgf
@y
}
%
\pgf
@shadingpath@northeast
%
\expandafter\pgf
@protocolsizes
{
\the\pgf
@x
}{
\the\pgf
@y
}
%
% Install the drawing modes and options.
\let\tikz
@options=
\tikz
@options@saved
%
\let\tikz
@mode=
\tikz
@mode@saved
%
}
;
% Now get the bounding box of the picture.
\xdef\pgf
@shadingboundingbox@southwest
{
\noexpand\pgfqpoint
{
\the\pgf
@picminx
}{
\the\pgf
@picminy
}}
%
\xdef\pgf
@shadingboundingbox@northeast
{
\noexpand\pgfqpoint
{
\the\pgf
@picmaxx
}{
\the\pgf
@picmaxy
}}
%
\endpgfscope
\end{tikzfadingfrompicture}
%
\endpgfinterruptpicture
%
\endpgfinterruptpath
%
% Install a rectangle that covers the shaded/faded path picture.
\pgftransformreset
%
\pgfpathrectanglecorners
{
\pgf
@shadingboundingbox@southwest
}{
\pgf
@shadingboundingbox@northeast
}
%
%
% Reset all modes.
\let\tikz
@path@picture=
\pgfutil
@empty
%
\tikz
@mode@fillfalse
%
\tikz
@mode@drawfalse
%
%\tikz@mode@tipsfalse% <- To have successful compilation with pgf-tikz v3.0.1a
\tikz
@mode@doublefalse
%
\tikz
@mode@clipfalse
%
\tikz
@mode@boundaryfalse
%
\tikz
@mode@fade@pathfalse
%
\tikz
@mode@fade@scopefalse
%
% Now install shading options.
\tikzset
{
#1
}
%
\tikz
@mode
%
% Make the fading happen.
\def\tikz
@path@fading
{
.
}
%
\tikz
@mode@fade@pathtrue
%
\tikz
@fade@adjustfalse
%
% Shift the fading to the mid point of the rectangle
\pgfpointscale
{
0.5
}{
\pgfpointadd
{
\pgf
@shadingboundingbox@southwest
}{
\pgf
@shadingboundingbox@northeast
}}
%
\edef\tikz
@fade@transform
{
shift=
{
(
\the\pgf
@x,
\the\pgf
@y)
}}
%
\pgfsetfading
{
\tikz
@path@fading
}{
\tikz
@do@fade@transform
}
%
\tikz
@mode@fade@pathfalse
%
}
%
\fi
%
}
\tikzset
{
shade path/.code=
{
%
\tikz
@addmode
{
\tikz
@shadepath
{
#1
}}
%
}
}
% From https://tex.stackexchange.com/questions/14283/stroke-with-variable-thickness/14295
\pgfkeys
{
/pgf/decoration/.cd,
start color/.store in =
\startcolor
,
end color/.store in =
\endcolor
}
\pgfdeclaredecoration
{
width and color change
}{
initial
}{
\state
{
initial
}
[width=0pt, next state=line, persistent precomputation=
{
%
\pgfmathdivide
{
50
}{
\pgfdecoratedpathlength
}
%
\let\increment
=
\pgfmathresult
%
\def\x
{
0
}
%
}
]
{}
\state
{
line
}
[width=.5pt, persistent postcomputation=
{
%
\pgfmathadd
@
{
\x
}{
\increment
}
%
\let\x
=
\pgfmathresult
%
}
]
{
%
\pgfsetlinewidth
{
\x
/40*0.075pt+
\pgflinewidth
}
%
\pgfsetarrows
{
-
}
%
\pgfpathmoveto
{
\pgfpointorigin
}
%
\pgfpathlineto
{
\pgfqpoint
{
.75pt
}{
0pt
}}
%
\pgfsetstrokecolor
{
\endcolor
!
\x
!
\startcolor
}
%
\pgfusepath
{
stroke
}
%
}
\state
{
final
}{
%
\pgfsetlinewidth
{
\pgflinewidth
}
%
\pgfpathmoveto
{
\pgfpointorigin
}
%
\color
{
\endcolor
!
\x
!
\startcolor
}
%
\pgfusepath
{
stroke
}
%
}
}
\makeatother
% <- To close the \makeatletter call
\definecolor
{
dynareirf
}{
HTML
}{
FF7F66
}
\begin{document}
\begin{document}
\begin{tikzpicture}
\begin{tikzpicture}
\draw
[ultra thick, dynareirf] plot [smooth] coordinates
{
(-.47,-.6) (0.19,0.55) (.69,-.41) (.85,-.33)
}
;
\draw
[ultra thick, red] plot [smooth] coordinates
{
(-.47,-.6) (0.19,0.55) (.7,-.4) (.94,-.21) (1.17,-.38) (1.38,-.29) (1.58,-.36) (1.78,-.31) (1.98,-.34) (2.18,-.32) (2.36,-.33)
}
;
\path
[draw=transparent!1, ultra thick, dynareirf]
(.85,-.33)
sin (.95,-.19) cos (1.07,-.33) sin (1.15,-.4) cos (1.28,-.33)
sin (1.4,-.29) cos (1.5,-.32) sin (1.6,-.37) cos (1.7, -.33)
sin (1.8,-.31) cos (1.88,-.33) sin (1.95,-.35) cos (2.04,-.33)
sin (2.17,-.32) cos (2.36,-.33) ;
\end{tikzpicture}
\end{tikzpicture}
\end{document}
\end{document}
assets/images/logo/dlogo.tex
View file @
edf09158
\documentclass
[border=0mm,convert={density=300,outext=.png}]
{
standalone
}
%\documentclass[border=0mm,convert={density=600,outext=.png}]{standalone}
\documentclass
[tikz, convert={outext=.svg, command=\unexpanded{pdf2svg \infile\space\outfile}}, multi=false]
{
standalone
}
\usepackage
{
tikz
}
\usepackage
{
tikz
}
\usetikzlibrary
{
decorations
}
\usetikzlibrary
{
decorations.pathreplacing,shapes.misc
}
\usetikzlibrary
{
fadings,decorations.pathmorphing
}
\usetikzlibrary
{
shadows
}
\usepackage
[default]
{
lato
}
\usepackage
[default]
{
lato
}
\usepackage
[T1]
{
fontenc
}
\usepackage
[T1]
{
fontenc
}
\makeatletter
% From https://tex.stackexchange.com/questions/137357/how-to-draw-an-arrow-with-two-colors
\newif\iftikz
@shading@path
\tikzset
{
% There are three circumstances in which the fading sep is needed:
% 1. Arrows which do not update the bounding box (which is most of them).
% 2. Line caps/joins and mitres that extend outside the natural bounding
% box of the path (these are not calculated by PGF).
% 3. Other reasons that haven't been anticipated.
shading xsep/.store in=
\tikz
@pathshadingxsep,
shading ysep/.store in=
\tikz
@pathshadingysep,
shading sep/.style=
{
shading xsep=#1, shading ysep=#1
}
,
shading sep=0.0cm,
}
\def\tikz
@shadepath#1
{
%
% \tikz@addmode installs the `modes' (e.g., fill, draw, shade)
% to be applied to the path. It isn't usualy for doing more
% changes to the path's construction.
\iftikz
@shading@path
%
\else
%
\tikz
@shading@pathtrue
%
% Get the current path.
\pgfgetpath\tikz
@currentshadingpath
%
% Get the shading sep without setting any other keys.
\begingroup
%
\pgfsys
@beginscope
% <- may not be necessary
\tikzset
{
#1
}
%
\xdef\tikz
@tmp
{
\noexpand\def\noexpand\tikz
@pathshadingxsep
{
\tikz
@pathshadingxsep
}
%
\noexpand\def\noexpand\tikz
@pathshadingysep
{
\tikz
@pathshadingysep
}}
%
\pgfsys
@endscope
%
\endgroup
\tikz
@tmp
%
% Get the boudning box of the current path size including the shading sep
\pgfextract
@process
\pgf
@shadingpath@southwest
{
\pgfpointadd
{
\pgfqpoint
{
\pgf
@pathminx
}{
\pgf
@pathminy
}}
%
{
\pgfpoint
{
-
\tikz
@pathshadingxsep
}{
-
\tikz
@pathshadingysep
}}}
%%
\pgfextract
@process
\pgf
@shadingpath@northeast
{
\pgfpointadd
{
\pgfqpoint
{
\pgf
@pathmaxx
}{
\pgf
@pathmaxy
}}
%
{
\pgfpoint
{
\tikz
@pathshadingxsep
}{
\tikz
@pathshadingysep
}}}
%
% Clear the path
\pgfsetpath\pgfutil
@empty
%
% Save the current drawing mode and options.
\let\tikz
@options@saved=
\tikz
@options
%
\let\tikz
@mode@saved=
\tikz
@mode
%
\let\tikz
@options=
\pgfutil
@empty
%
\let\tikz
@mode=
\pgfutil
@empty
%
% \tikz@options are processed later on.
\tikz
@addoption
{
%
\pgfinterruptpath
%
\pgfinterruptpicture
%
\begin{tikzfadingfrompicture}
[name=.]
\pgfscope
%
\tikzset
{
shade path/.style=
}
% Make absolutely sure shade path is not inherited.
\path
\pgfextra
{
%
% Set the softpath. Any transformations,draw=none} in #1 will have no effect.
% This will *not* update the bounding box...
\pgfsetpath\tikz
@currentshadingpath
%
% ...so it is done manually.
\pgf
@shadingpath@southwest
\expandafter\pgf
@protocolsizes
{
\the\pgf
@x
}{
\the\pgf
@y
}
%
\pgf
@shadingpath@northeast
%
\expandafter\pgf
@protocolsizes
{
\the\pgf
@x
}{
\the\pgf
@y
}
%
% Install the drawing modes and options.
\let\tikz
@options=
\tikz
@options@saved
%
\let\tikz
@mode=
\tikz
@mode@saved
%
}
;
% Now get the bounding box of the picture.
\xdef\pgf
@shadingboundingbox@southwest
{
\noexpand\pgfqpoint
{
\the\pgf
@picminx
}{
\the\pgf
@picminy
}}
%
\xdef\pgf
@shadingboundingbox@northeast
{
\noexpand\pgfqpoint
{
\the\pgf
@picmaxx
}{
\the\pgf
@picmaxy
}}
%
\endpgfscope
\end{tikzfadingfrompicture}
%
\endpgfinterruptpicture
%
\endpgfinterruptpath
%
% Install a rectangle that covers the shaded/faded path picture.
\pgftransformreset
%
\pgfpathrectanglecorners
{
\pgf
@shadingboundingbox@southwest
}{
\pgf
@shadingboundingbox@northeast
}
%
%
% Reset all modes.
\let\tikz
@path@picture=
\pgfutil
@empty
%
\tikz
@mode@fillfalse
%
\tikz
@mode@drawfalse
%
%\tikz@mode@tipsfalse% <- To have successful compilation with pgf-tikz v3.0.1a
\tikz
@mode@doublefalse
%
\tikz
@mode@clipfalse
%
\tikz
@mode@boundaryfalse
%
\tikz
@mode@fade@pathfalse
%
\tikz
@mode@fade@scopefalse
%
% Now install shading options.
\tikzset
{
#1
}
%
\tikz
@mode
%
% Make the fading happen.
\def\tikz
@path@fading
{
.
}
%
\tikz
@mode@fade@pathtrue
%
\tikz
@fade@adjustfalse
%
% Shift the fading to the mid point of the rectangle
\pgfpointscale
{
0.5
}{
\pgfpointadd
{
\pgf
@shadingboundingbox@southwest
}{
\pgf
@shadingboundingbox@northeast
}}
%
\edef\tikz
@fade@transform
{
shift=
{
(
\the\pgf
@x,
\the\pgf
@y)
}}
%
\pgfsetfading
{
\tikz
@path@fading
}{
\tikz
@do@fade@transform
}
%
\tikz
@mode@fade@pathfalse
%
}
%
\fi
%
}
\tikzset
{
shade path/.code=
{
%
\tikz
@addmode
{
\tikz
@shadepath
{
#1
}}
%
}
}
% From https://tex.stackexchange.com/questions/14283/stroke-with-variable-thickness/14295
\pgfkeys
{
/pgf/decoration/.cd,
start color/.store in =
\startcolor
,
end color/.store in =
\endcolor
}
\pgfdeclaredecoration
{
width and color change
}{
initial
}{
\state
{
initial
}
[width=0pt, next state=line, persistent precomputation=
{
%
\pgfmathdivide
{
50
}{
\pgfdecoratedpathlength
}
%
\let\increment
=
\pgfmathresult
%
\def\x
{
0
}
%
}
]
{}
\state
{
line
}
[width=.5pt, persistent postcomputation=
{
%
\pgfmathadd
@
{
\x
}{
\increment
}
%
\let\x
=
\pgfmathresult
%
}
]
{
%
\pgfsetlinewidth
{
\x
/40*0.075pt+
\pgflinewidth
}
%
\pgfsetarrows
{
-
}
%
\pgfpathmoveto
{
\pgfpointorigin
}
%
\pgfpathlineto
{
\pgfqpoint
{
.75pt
}{
0pt
}}
%
\pgfsetstrokecolor
{
\endcolor
!
\x
!
\startcolor
}
%
\pgfusepath
{
stroke
}
%
}
\state
{
final
}{
%
\pgfsetlinewidth
{
\pgflinewidth
}
%
\pgfpathmoveto
{
\pgfpointorigin
}
%
\color
{
\endcolor
!
\x
!
\startcolor
}
%
\pgfusepath
{
stroke
}
%
}
}
\makeatother
% <- To close the \makeatletter call
\definecolor
{
dynare
}{
HTML
}{
2185C5
}
\definecolor
{
dynare
}{
HTML
}{
2185C5
}
\definecolor
{
dynareirf
}{
HTML
}{
FF7F66
}
\definecolor
{
shadow
}{
HTML
}{
abb3ba
}
\definecolor
{
dynareirf
}{
HTML
}{
7ECEFD
}
\begin{document}
\begin{document}
\begin{tikzpicture}
\begin{tikzpicture}
\tikzset
{
% dynare shadow
shadowed/.style=
{
preaction=
{
transform canvas=
{
shift=
{
(-.4pt,-.4pt)
}}
,draw=black!25,thin
}}
,
\node
[shadow,font=
\Huge
] at (.98,-.02)
{
Dynare
}
;
}
% Shadow Text
\node
[black!25,font=
\Huge
] at (.98,-.02)
{
Dynare
}
;
% Front
% irf
\draw
[thin, dynareirf, shadowed] plot [smooth] coordinates
{
(-.47,-.6) (0.19,0.55) (.69,-.41) (.85,-.33)
}
;
\draw
[thick, dynareirf] plot [smooth] coordinates
{
(-.47,-.6) (0.19,0.55) (.7,-.4) (.94,-.21) (1.17,-.38) (1.38,-.29) (1.58,-.36) (1.78,-.31) (1.98,-.34) (2.18,-.32) (2.36,-.33)
}
;
% dynare
\node
[text=dynare,font=
\Huge
] at (1,0)
{
Dynare
}
;
\node
[text=dynare,font=
\Huge
] at (1,0)
{
Dynare
}
;
\draw
[thin, dynareirf,shadowed] plot [smooth] coordinates
{
(-.32,-.28) (-.215,-.07)
}
;
% Cover lower-left corner of D
\draw
[thin, dynareirf] plot [smooth] coordinates
{
(-.328,-.3) (-.32,-.28)
}
;
% cover shadow with red
\draw
[thick, dynareirf] plot [smooth] coordinates
{
(-.322,-.28) (-.203,-.04)
}
;
\path
[draw=transparent!1, thin, shade path=
{
left color=dynareirf!100, right color=dynareirf!0
}
, shadowed]
(.85,-.33)
sin (.95,-.19) cos (1.07,-.33) sin (1.15,-.4) cos (1.28,-.33)
sin (1.4,-.29) cos (1.5,-.32) sin (1.6,-.37) cos (1.7, -.33)
sin (1.8,-.31) cos (1.88,-.33) sin (1.95,-.35) cos (2.04,-.33)
sin (2.17,-.32) cos (2.36,-.33) ;
\draw
[thin, dynareirf] plot [smooth] coordinates
{
(.84,-.35) (.85,-.33)
}
;
% cover shadow with red
\end{tikzpicture}
\end{tikzpicture}
\end{document}
\end{document}
assets/images/logo/dlogo_hover.tex
View file @
edf09158
\documentclass
[border=0mm,convert={density=300,outext=.png}]
{
standalone
}
%\documentclass[border=0mm,convert={density=600,outext=.png}]{standalone}
\documentclass
[tikz, convert={outext=.svg, command=\unexpanded{pdf2svg \infile\space\outfile}}, multi=false]
{
standalone
}
\usepackage
{
tikz
}
\usepackage
{
tikz
}
\usetikzlibrary
{
decorations
}
\usetikzlibrary
{
decorations.pathreplacing,shapes.misc
}
\usetikzlibrary
{
fadings,decorations.pathmorphing
}
\usetikzlibrary
{
shadows
}
\usepackage
[default]
{
lato
}
\usepackage
[default]
{
lato
}
\usepackage
[T1]
{
fontenc
}
\usepackage
[T1]
{
fontenc
}
\makeatletter
\definecolor
{
dynare
}{
HTML
}{
2185C5
}
\definecolor
{
shadow
}{
HTML
}{
abb3ba
}
% From https://tex.stackexchange.com/questions/137357/how-to-draw-an-arrow-with-two-colors
\newif\iftikz
@shading@path
\tikzset
{
% There are three circumstances in which the fading sep is needed:
% 1. Arrows which do not update the bounding box (which is most of them).
% 2. Line caps/joins and mitres that extend outside the natural bounding
% box of the path (these are not calculated by PGF).
% 3. Other reasons that haven't been anticipated.
shading xsep/.store in=
\tikz
@pathshadingxsep,
shading ysep/.store in=
\tikz
@pathshadingysep,
shading sep/.style=
{
shading xsep=#1, shading ysep=#1
}
,
shading sep=0.0cm,
}
\def\tikz
@shadepath#1
{
%
% \tikz@addmode installs the `modes' (e.g., fill, draw, shade)
% to be applied to the path. It isn't usualy for doing more
% changes to the path's construction.
\iftikz
@shading@path
%
\else
%
\tikz
@shading@pathtrue
%
% Get the current path.
\pgfgetpath\tikz
@currentshadingpath
%
% Get the shading sep without setting any other keys.
\begingroup
%
\pgfsys
@beginscope
% <- may not be necessary
\tikzset
{
#1
}
%
\xdef\tikz
@tmp
{
\noexpand\def\noexpand\tikz
@pathshadingxsep
{
\tikz
@pathshadingxsep
}
%
\noexpand\def\noexpand\tikz
@pathshadingysep
{
\tikz
@pathshadingysep
}}
%
\pgfsys
@endscope
%
\endgroup
\tikz
@tmp
%
% Get the boudning box of the current path size including the shading sep
\pgfextract
@process
\pgf
@shadingpath@southwest
{
\pgfpointadd
{
\pgfqpoint
{
\pgf
@pathminx
}{
\pgf
@pathminy
}}
%
{
\pgfpoint
{
-
\tikz
@pathshadingxsep
}{
-
\tikz
@pathshadingysep
}}}
%%
\pgfextract
@process
\pgf
@shadingpath@northeast
{
\pgfpointadd
{
\pgfqpoint
{
\pgf
@pathmaxx
}{
\pgf
@pathmaxy
}}
%
{
\pgfpoint
{
\tikz
@pathshadingxsep
}{
\tikz
@pathshadingysep
}}}
%
% Clear the path
\pgfsetpath\pgfutil
@empty
%
% Save the current drawing mode and options.
\let\tikz
@options@saved=
\tikz
@options
%
\let\tikz
@mode@saved=
\tikz
@mode
%
\let\tikz
@options=
\pgfutil
@empty
%
\let\tikz
@mode=
\pgfutil
@empty
%
% \tikz@options are processed later on.
\tikz
@addoption
{
%
\pgfinterruptpath
%
\pgfinterruptpicture
%
\begin{tikzfadingfrompicture}
[name=.]
\pgfscope
%
\tikzset
{
shade path/.style=
}
% Make absolutely sure shade path is not inherited.
\path
\pgfextra
{
%
% Set the softpath. Any transformations,draw=none} in #1 will have no effect.
% This will *not* update the bounding box...
\pgfsetpath\tikz
@currentshadingpath
%
% ...so it is done manually.
\pgf
@shadingpath@southwest
\expandafter\pgf
@protocolsizes
{
\the\pgf
@x
}{
\the\pgf
@y
}
%
\pgf
@shadingpath@northeast
%
\expandafter\pgf
@protocolsizes
{
\the\pgf
@x
}{
\the\pgf
@y
}
%
% Install the drawing modes and options.
\let\tikz
@options=
\tikz
@options@saved
%
\let\tikz
@mode=
\tikz
@mode@saved
%
}
;
% Now get the bounding box of the picture.
\xdef\pgf
@shadingboundingbox@southwest
{
\noexpand\pgfqpoint
{
\the\pgf
@picminx
}{
\the\pgf
@picminy
}}
%
\xdef\pgf
@shadingboundingbox@northeast
{
\noexpand\pgfqpoint
{
\the\pgf
@picmaxx
}{
\the\pgf
@picmaxy
}}
%
\endpgfscope
\end{tikzfadingfrompicture}
%
\endpgfinterruptpicture
%
\endpgfinterruptpath
%
% Install a rectangle that covers the shaded/faded path picture.
\pgftransformreset
%
\pgfpathrectanglecorners
{
\pgf
@shadingboundingbox@southwest
}{
\pgf
@shadingboundingbox@northeast
}
%
%
% Reset all modes.
\let\tikz
@path@picture=
\pgfutil
@empty
%
\tikz
@mode@fillfalse
%
\tikz
@mode@drawfalse
%
%\tikz@mode@tipsfalse% <- To have successful compilation with pgf-tikz v3.0.1a
\tikz
@mode@doublefalse
%
\tikz
@mode@clipfalse
%
\tikz
@mode@boundaryfalse
%
\tikz
@mode@fade@pathfalse
%
\tikz
@mode@fade@scopefalse
%
% Now install shading options.
\tikzset
{
#1
}
%
\tikz
@mode
%
% Make the fading happen.
\def\tikz
@path@fading
{
.
}
%
\tikz
@mode@fade@pathtrue
%
\tikz
@fade@adjustfalse
%
% Shift the fading to the mid point of the rectangle
\pgfpointscale
{
0.5
}{
\pgfpointadd
{
\pgf
@shadingboundingbox@southwest
}{
\pgf
@shadingboundingbox@northeast
}}
%
\edef\tikz
@fade@transform
{
shift=
{
(
\the\pgf
@x,
\the\pgf
@y)
}}
%
\pgfsetfading
{
\tikz
@path@fading
}{
\tikz
@do@fade@transform
}
%
\tikz
@mode@fade@pathfalse
%
}
%
\fi
%
}
\tikzset
{
shade path/.code=
{
%
\tikz
@addmode
{
\tikz
@shadepath
{
#1
}}
%
}
}
% From https://tex.stackexchange.com/questions/14283/stroke-with-variable-thickness/14295
\pgfkeys
{
/pgf/decoration/.cd,
start color/.store in =
\startcolor
,
end color/.store in =
\endcolor
}
\pgfdeclaredecoration
{
width and color change
}{
initial
}{
\state
{
initial
}
[width=0pt, next state=line, persistent precomputation=
{
%
\pgfmathdivide
{
50
}{
\pgfdecoratedpathlength
}
%
\let\increment
=
\pgfmathresult
%
\def\x
{
0
}
%
}
]
{}
\state
{
line
}
[width=.5pt, persistent postcomputation=
{
%
\pgfmathadd
@
{
\x
}{
\increment
}
%
\let\x
=
\pgfmathresult
%
}
]
{
%
\pgfsetlinewidth
{
\x
/40*0.075pt+
\pgflinewidth
}
%
\pgfsetarrows
{
-
}
%
\pgfpathmoveto
{
\pgfpointorigin
}
%
\pgfpathlineto
{
\pgfqpoint
{
.75pt
}{
0pt
}}
%
\pgfsetstrokecolor
{
\endcolor
!
\x
!
\startcolor
}
%
\pgfusepath
{
stroke
}
%
}
\state
{
final
}{
%
\pgfsetlinewidth
{
\pgflinewidth
}
%
\pgfpathmoveto
{
\pgfpointorigin
}
%
\color
{
\endcolor
!
\x
!
\startcolor
}
%
\pgfusepath
{
stroke
}
%
}
}
\makeatother
% <- To close the \makeatletter call
\definecolor
{
dynare
}{
HTML
}{
1a6899
}
\definecolor
{
dynareirf
}{
HTML
}{
FF7F66
}
\definecolor
{
dynareirf
}{
HTML
}{
FF7F66
}
\begin{document}
\begin{document}
\begin{tikzpicture}
\begin{tikzpicture}
\tikzset
{
% dynare shadow