%% fancyqr.sty
%% Copyright 2026 Florian Sihler
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3c
% of this license or (at your option) any later version.
% The latest version of this license is in
%   https://www.latex-project.org/lppl.txt
% and version 1.3c or later is part of all distributions of LaTeX
% version 2008 or later.
%
% This work has the LPPL maintenance status `maintained'.
% 
% The Current Maintainer of this work is Florian Sihler
%
% This work consists of the example file `qr-example.tex`, alongside the `fancyqr.sty`, the `fancyqr-style-*.code` files and the documentation `fancyqr-doc.tex`.
\documentclass{article}

\usepackage[T1]{fontenc}
\usepackage{fontawesome}
\usepackage{fancyqr}

% for showcase of random colors
\usepackage{pgfmath}
\usepackage[prefix=@]{xcolor-material}

% to showcase scalebox
\usepackage{graphicx}

% for the coding font
\usepackage{FiraMono}

\usepackage[active,tightpage]{preview} % for presentation
\setlength\PreviewBorder{15pt}

\fancyqrset{size=3.25cm, level=H, padding,
   r color=orange!35!red!88!black, l color=purple!45!red!38!black}

\errorcontextlines=9999
\begin{document}
\preview
\begin{center}
% \FancyQrDoNotPrintSquare{8}{9}
% \FancyQrHardCut
\mbox{\FancyQrLoad{goo}%
\fancyqr[image=\scalebox{2.9}{\faGithub},image padding=1,seed=3,content color=black]{https://github.com/EagleoutIce/fancyqr}%
\FancyQrLoad{default}%
\fancyqr{https://github.com/EagleoutIce/fancyqr}%
\FancyQrLoad{dots}%
\fancyqr[image={\textsf{\textbf{\textcolor{gray}{fancy}qr}}}, random color={@Red600}{@Purple600}{@DeepPurple600}{@Indigo600}{@Teal600}{@Green600}{@DeepOrange600}{@Brown600}{@BlueGrey600}]{https://github.com/EagleoutIce/fancyqr}%
}\\[4mm]
\texttt{\textbackslash \textbf{fancyqr}\{\textcolor{@Grey}{https://github.com/EagleoutIce/fancyqr}\}}
\end{center}
\endpreview
\end{document}