Skip to content

Rounded Cutoff#41

Merged
EagleoutIce merged 3 commits intomainfrom
5-allow-for-circular-cut-outs-not-just-rectangle
Nov 26, 2024
Merged

Rounded Cutoff#41
EagleoutIce merged 3 commits intomainfrom
5-allow-for-circular-cut-outs-not-just-rectangle

Conversation

@EagleoutIce
Copy link
Owner

Currently, we do circle radius calculation but this is to be improved to really reflect the outer edge rounding:
qr-minimal

Code
\documentclass{article}

\errorcontextlines=99999
\usepackage{fancyqr}

\usepackage[active,tightpage]{preview}
\setlength\PreviewBorder{50pt}
\usepackage{pgffor}

\makeatletter
% make all black:
\def\qr@white{1}
\begin{document}
\preview
\foreach \i in {0,.1,...,1}{%
\expandafter\FancyQrDoNotPrintRadius\expandafter{\i}%
\fancyqr[classic,image=\Large\color{green}@,level=H,version=10]{https://github.com/EagleoutIce/fancyqr}\hfill
\fancyqr[classic,image=\Large\color{purple}*\fpeval{round(\i,2)}*,level=H,version=10]{https://github.com/EagleoutIce/fancyqr}\hfill
}\\
\centerline{Various Variants of \texttt{\textbackslash FancyQrDoNotPrintRadius}}
\endpreview
\end{document}

@EagleoutIce EagleoutIce linked an issue Nov 26, 2024 that may be closed by this pull request
@EagleoutIce EagleoutIce merged commit 61d143b into main Nov 26, 2024
@EagleoutIce EagleoutIce deleted the 5-allow-for-circular-cut-outs-not-just-rectangle branch November 26, 2024 07:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow for circular cut-outs not just rectangle

1 participant