1

I have two similar ornaments in this picture. I need to horizontally flip one of them (like mirror image).

\documentclass[20pt]{extarticle}
\usepackage[utf8]{inputenc}
\usepackage{geometry}
\geometry{paperheight=5in,paperwidth=7in,margin=10mm, top=1cm}
\usepackage{tikz, pgfornament, tikzrput}
\usepackage{bookman}
\usepackage{eso-pic}
\usepackage[utf8]{inputenc}
\PassOptionsToPackage{dvipsnames,svgnames}{xcolor} 
\usepackage{pdfrender}
\usepackage{pdfpages}
\makeatletter
\makeatother
\definecolor{mygreen}{RGB}{23,78,25}
\begin{document}
\pagenumbering{gobble}
\centering
{
\begin{tikzpicture}
\node at (2,-5) {
\scalebox{2}{\textup{%
\textpdfrender{%
  TextRenderingMode=2,
  LineWidth=.1ex,
  StrokeColor=mygreen,
  FillColor=mygreen,
}{\large LAVENDER }}}
};
\begin{scope}[color=red,
                every node/.style={inner sep=0pt}]
\node[minimum size=0cm](vecbox){};
 \node[anchor=north west, yshift=-10cm, xshift=-5cm, rotate=90] at 
(vecbox.west)
{\pgfornament[width=10cm]{87}};
        \node[anchor=north east, yshift=0cm, xshift=7cm, rotate=90] at 
(vecbox.east)
{\pgfornament[width=10cm]{87}};
\end{scope}
\end{tikzpicture}
}
\end{document}

enter image description here

  • 2
    To flip the left ornament, use \node[anchor=south west, yshift=-10cm, xshift=-5cm, rotate=90,yscale=-1] at (vecbox.west) {\pgfornament[width=10cm]{87}}; , and similarly for the right one. That is, the answer is: use yscale=-1 (or xscale=-1 for unrotated ornaments). – user121799 Jul 30 '19 at 3:48
2

With similar idea as proposed @marmoth in his comment but with slightly corrected/simplified your code:

\documentclass[20pt]{extarticle}
%\usepackage[utf8]{inputenc}
\usepackage{geometry}
\geometry{%showframe,
          paperheight=5in,paperwidth=7in,
          margin=10mm}
\usepackage[dvipsnames,svgnames]{xcolor}
\usepackage{tikz, pgfornament, tikzrput}
\usetikzlibrary{positioning}

\usepackage{bookman}
\usepackage{eso-pic}
%\usepackage[utf8]{inputenc}
\usepackage{pdfrender}
\usepackage{pdfpages}
%\makeatletter
%\makeatother
\definecolor{mygreen}{RGB}{23,78,25}

\begin{document}
\thispagestyle{empty}
%\pagenumbering{gobble}
\begin{center}
\begin{tikzpicture}[node distance = 44mm and 66mm]
%
\node[font=\large] (n1)  {\scalebox{2}{\textup{%
                            \textpdfrender{%
                            TextRenderingMode=2,
                            LineWidth=.1ex,
                            StrokeColor=mygreen,
                            FillColor=mygreen}%
                            {LAVENDER}}}};
\coordinate[above=of n1] (n2);
    \begin{scope}[color=red]
\node[rotate=90, left =of n2]   {\pgfornament[width=10cm]{87}};
\node[rotate=90, right=of n2, 
      xscale=-1]                {\pgfornament[width=10cm]{87}}; % horizontally mirrored by xscale=-1
    \end{scope}
\end{tikzpicture}
\end{center}
\end{document}

enter image description here

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.