| 1 |
%% |
| 2 |
%% This is file `na-tikzornament.sty', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% na-tikzornament.dtx (with options: `package') |
| 8 |
%% -------------------------------------------------------------------------- |
| 9 |
%% na-tikzornament package: Ornaments and Tiling with TikZ |
| 10 |
%% Released under the LaTeX Project Public License v1.3c or later |
| 11 |
%% -------------------------------------------------------------------------- |
| 12 |
\NeedsTeXFormat{LaTeX2e} |
| 13 |
\ProvidesPackage{na-tikzornament}[2026/05/14 v1.0 Na TikZ Ornaments with Tiling] |
| 14 |
\RequirePackage[x11names,svgnames]{xcolor} |
| 15 |
\RequirePackage{tikz} |
| 16 |
\usetikzlibrary{shapes.geometric, calc} |
| 17 |
\newcommand{\dicedotsNa}[1]{% |
| 18 |
\ifnum#1=1 \fill[black] (0.5,0.5) circle (0.11); \fi |
| 19 |
\ifnum#1=2 \fill[black] (0.2,0.2) circle (0.11) (0.8,0.8) circle (0.11); \fi |
| 20 |
\ifnum#1=3 \fill[black] (0.2,0.2) circle (0.11) (0.5,0.5) circle (0.11) (0.8,0.8) circle (0.11); \fi |
| 21 |
\ifnum#1=4 \fill[black] (0.2,0.2) circle (0.11) (0.2,0.8) circle (0.11) (0.8,0.2) circle (0.11) (0.8,0.8) circle (0.11); \fi |
| 22 |
\ifnum#1=5 \fill[black] (0.2,0.2) circle (0.11) (0.2,0.8) circle (0.11) (0.5,0.5) circle (0.11) (0.8,0.2) circle (0.11) (0.8,0.8) circle (0.11); \fi |
| 23 |
\ifnum#1=6 \fill[black] (0.2,0.2) circle (0.11) (0.2,0.5) circle (0.11) (0.2,0.8) circle (0.11) (0.8,0.2) circle (0.11) (0.8,0.5) circle (0.11) (0.8,0.8) circle (0.11); \fi |
| 24 |
} |
| 25 |
|
| 26 |
\newcommand{\NaOrnaOne}[3]{\begin{scope}[shift={#1}, scale=#2] \foreach \a in {0, 60, ..., 300} { \begin{scope}[rotate=\a] \draw[line width=1.1pt, #3] (0.2,0) -- (0.8,0.3) -- (1.4,0) -- (0.8,-0.3) -- cycle; \draw[line width=0.5pt, #3, opacity=0.6] (0.2,0) -- (1.4,0); \fill[#3] (1.4,0) circle (1.5pt); \end{scope} } \foreach \r in {0.2, 0.35} { \draw[line width=1pt, #3, opacity=0.8] (0,0) circle (\r); } \fill[white] (0,0) circle (0.15); \draw[line width=1.2pt, #3] (0,0) circle (0.15); \end{scope}} |
| 27 |
\newcommand{\NaOrnaTwo}[3]{\begin{scope}[shift={#1}, scale=#2] \foreach \r in {0, 45} { \draw[line width=1.3pt, #3, rotate=\r] (-1,-1) rectangle (1,1); } \draw[line width=1pt, #3] (0,0) circle (0.4); \foreach \x in {-1, 1} \foreach \y in {-1, 1} { \fill[#3] (\x,\y) circle (2.5pt); } \end{scope}} |
| 28 |
\newcommand{\NaOrnaThree}[3]{\begin{scope}[shift={#1}, scale=#2] \foreach \r in {0, 45, ..., 315} { \begin{scope}[rotate=\r] \draw[line width=1.1pt, #3] (0.1,0) .. controls (0.5,0.6) and (1.2,0.6) .. (1.4,0); \draw[line width=1.1pt, #3] (0.1,0) .. controls (0.5,-0.6) and (1.2,-0.6) .. (1.4,0); \end{scope} } \end{scope}} |
| 29 |
\newcommand{\NaOrnaFour}[3]{\begin{scope}[shift={#1}, scale=#2] \foreach \r in {0, 45} { \draw[line width=1.2pt, #3, rotate=\r] (-1,-1) rectangle (1,1); } \draw[line width=1pt, #3] (0,0) circle (0.7); \foreach \a in {0, 45, ..., 315} { \fill[#3] (\a:1.414) circle (2pt); } \end{scope}} |
| 30 |
\newcommand{\NaOrnaFive}[3]{\begin{scope}[shift={#1}, scale=#2] \foreach \r in {0, 45} { \draw[line width=1.2pt, #3, rotate=\r] (-1,-1) rectangle (1,1); } \draw[line width=1.5pt, #3] (0,0) circle (0.5); \fill[#3] (0,0) circle (0.15); \end{scope}} |
| 31 |
\newcommand{\NaOrnaSix}[3]{\begin{scope}[shift={#1}, scale=#2] \foreach \a in {0, 60, ..., 300} { \draw[line width=1.2pt, #3, rotate=\a] (0.2,0) -- (1.5,0.4) -- (1.1,0) -- (1.5,-0.4) -- cycle; } \fill[#3] (0,0) circle (1.5pt); \end{scope}} |
| 32 |
\newcommand{\NaOrnaSeven}[3]{\begin{scope}[shift={#1}, scale=#2] \foreach \a in {0, 30, ..., 330} { \draw[line width=1pt, #3, rotate=\a] (0.3,0) .. controls (0.8,0.5) .. (1.4,0); \draw[line width=1pt, #3, rotate=\a] (0.3,0) .. controls (0.8,-0.5) .. (1.4,0); } \draw[line width=1.2pt, #3, double] (0,0) circle (0.3); \end{scope}} |
| 33 |
\newcommand{\NaOrnaEight}[3]{\begin{scope}[shift={#1}, scale=#2] \foreach \a in {0, 60, ..., 300} { \draw[line width=1.1pt, #3, rotate=\a] (0.2,0) -- (1.2,0.6) -- (1.2,-0.6) -- cycle; } \draw[line width=1pt, #3] (0,0) circle (0.4); \end{scope}} |
| 34 |
\newcommand{\NaOrnaNine}[3]{\begin{scope}[shift={#1}, scale=#2] \foreach \a in {0, 45, ..., 315} { \draw[line width=1pt, #3, rotate=\a] (0.2,0) -- (1.5,0.2) -- (1.5,-0.2) -- cycle; } \draw[line width=1.2pt, #3, double] (0,0) circle (0.25); \end{scope}} |
| 35 |
\newcommand{\NaOrnaTen}[3]{\begin{scope}[shift={#1}, scale=#2] \foreach \a in {0, 60, ..., 300} { \draw[line width=1.2pt, #3, rotate=\a] (0.1,0) -- (1.3,0.5) -- (0.8,0.8) -- cycle; } \draw[line width=1pt, #3, fill=white] (0,0) circle (0.4); \end{scope}} |
| 36 |
|
| 37 |
\newcommand{\NaOrnaEleven}[3]{ \begin{scope}[shift={#1}, scale={#2*0.8}, rotate=25] \fill[#3] (0,0) rectangle (1,1); \dicedotsNa{5} \fill[#3!80!black] (0,1) -- (0.35,1.35) -- (1.35,1.35) -- (1,1) -- cycle; \begin{scope}[shift={(0,1)}, x={(0.35cm,0.35cm)}, y={(1cm,0cm)}] \dicedotsNa{6} \end{scope} \fill[#3!60!black] (1,0) -- (1.35,0.35) -- (1.35,1.35) -- (1,1) -- cycle; \begin{scope}[shift={(1,0)}, x={(0.35cm,0.35cm)}, y={(0cm,1cm)}] \dicedotsNa{3} \end{scope} \draw[black!40, thin] (0,0) rectangle (1,1) (0,1)--(0.35,1.35)--(1.35,1.35)--(1,1) (1,0)--(1.35,0.35)--(1.35,1.35); \end{scope} } |
| 38 |
|
| 39 |
\newcommand{\NaOrnaTwelve}[3]{\begin{scope}[shift={#1}, scale=#2] \foreach \a in {0,45,...,315} { \draw[#3, line width=1pt, rotate=\a] (0.2,0) -- (1.2,0) (1.2,0) circle (2pt); } \draw[#3, line width=1.2pt] (0,0) circle (0.2); \end{scope}} |
| 40 |
\newcommand{\NaOrnaThirteen}[3]{\begin{scope}[shift={#1}, scale=#2] \foreach \a in {0,60,...,300} { \draw[#3, line width=1pt, rotate=\a] (0.3,0) -- (1,0.5) -- (1,-0.5) -- cycle; } \fill[#3] (0,0) circle (2pt); \end{scope}} |
| 41 |
\newcommand{\NaOrnaFourteen}[3]{\begin{scope}[shift={#1}, scale=#2] \foreach \a in {0,90,...,270} { \draw[#3, line width=1.2pt, rotate=\a] (0.5,0.5) circle (0.4); } \draw[#3, fill=white] (0,0) circle (0.3); \end{scope}} |
| 42 |
\newcommand{\NaOrnaFifteen}[3]{\begin{scope}[shift={#1}, scale=#2] \foreach \a in {0,30,...,330} { \draw[#3, line width=0.8pt, rotate=\a] (0.4,0) -- (1.2,0.2); \draw[#3, line width=0.8pt, rotate=\a] (0.4,0) -- (1.2,-0.2); } \draw[#3, double] (0,0) circle (0.4); \end{scope}} |
| 43 |
\newcommand{\NaOrnaSixteen}[3]{\begin{scope}[shift={#1}, scale=#2] \foreach \a in {0,60,...,300} { \draw[#3, line width=1pt, rotate=\a] (0.2,-0.2) rectangle (1.2,0.2); } \fill[#3] (0,0) circle (0.25); \end{scope}} |
| 44 |
\newcommand{\NaOrnaSeventeen}[3]{\begin{scope}[shift={#1}, scale=#2] \foreach \a in {0,45,...,315} { \draw[#3, line width=1.1pt, rotate=\a] (0.3,0) .. controls (0.6,0.8) .. (1.2,0); } \draw[#3] (0,0) circle (0.3); \end{scope}} |
| 45 |
\newcommand{\NaOrnaEighteen}[3]{\begin{scope}[shift={#1}, scale=#2] \foreach \a in {0,120,240} { \draw[#3, line width=1.5pt, rotate=\a] (0,0.2) -- (1,1.2) -- (1,-1.2) -- cycle; } \draw[#3, fill=white] (0,0) circle (0.35); \end{scope}} |
| 46 |
\newcommand{\NaOrnaNineteen}[3]{\begin{scope}[shift={#1}, scale=#2] \foreach \a in {0,60,...,300} { \draw[#3, line width=1pt, rotate=\a] (0.2,0) -- (1.4,0) arc (0:180:0.2); } \fill[#3] (0,0) circle (0.2); \end{scope}} |
| 47 |
\newcommand{\NaOrnaTwenty}[3]{\begin{scope}[shift={#1}, scale=#2] \foreach \a in {0,45,...,315} { \draw[#3, line width=1pt, rotate=\a] (0.2,0) -- (1.3,0.4); \draw[#3, line width=1pt, rotate=\a] (0.2,0) -- (1.3,-0.4); } \draw[#3, fill=white, double] (0,0) circle (0.3); \end{scope}} |
| 48 |
|
| 49 |
\newcommand{\NaOrnaTwentyOne}[3]{\begin{scope}[shift={#1}, scale=#2] \foreach \a in {0,60,...,300} { \draw[#3, line width=1pt, rotate=\a] (0.3,0) -- (1.2,0); \draw[#3, line width=1pt, rotate=\a] (1.2,0) circle (3pt); \fill[#3, rotate=\a] (1.2,0) circle (1pt); } \end{scope}} |
| 50 |
\newcommand{\NaOrnaTwentyTwo}[3]{\begin{scope}[shift={#1}, scale=#2] \foreach \a in {0,90,...,270} { \draw[#3, line width=1.2pt, rotate=\a] (0.2,0.2) -- (1,0.2) -- (1,1) -- cycle; } \fill[#3] (0,0) circle (2.5pt); \end{scope}} |
| 51 |
\newcommand{\NaOrnaTwentyThree}[3]{\begin{scope}[shift={#1}, scale=#2] \foreach \a in {0,45,...,315} { \draw[#3, line width=1pt, rotate=\a] (0.4,0) arc (0:120:0.5); } \draw[#3, double] (0,0) circle (0.3); \end{scope}} |
| 52 |
\newcommand{\NaOrnaTwentyFour}[3]{\begin{scope}[shift={#1}, scale=#2] \foreach \a in {0,72,...,288} { \draw[#3, line width=1pt, rotate=\a] (0,0.3) -- (0.8,1.2) -- (1.2,0.4) -- cycle; } \end{scope}} |
| 53 |
\newcommand{\NaOrnaTwentyFive}[3]{\begin{scope}[shift={#1}, scale=#2] \foreach \a in {0,60,...,300} { \draw[#3, line width=1pt, rotate=\a] (0.2,0) -- (1.4,0.6); \fill[#3, rotate=\a] (1.4,0.6) circle (2pt); } \draw[#3, fill=white] (0,0) circle (0.3); \end{scope}} |
| 54 |
\newcommand{\NaOrnaTwentySix}[3]{\begin{scope}[shift={#1}, scale=#2] \foreach \a in {0,45,...,315} { \draw[#3, thin, rotate=\a] (0.2,0) -- (1.5,0); \draw[#3, line width=1.2pt, rotate=\a] (0.8,0) circle (4pt); } \end{scope}} |
| 55 |
\newcommand{\NaOrnaTwentySeven}[3]{\begin{scope}[shift={#1}, scale=#2] \foreach \a in {0,120,240} { \draw[#3, line width=2pt, rotate=\a] (0.3,0) -- (1.5,0); \draw[#3, line width=1pt, rotate=\a] (1.5,0) circle (5pt); } \end{scope}} |
| 56 |
\newcommand{\NaOrnaTwentyEight}[3]{\begin{scope}[shift={#1}, scale=#2] \foreach \a in {0,60,...,300} { \draw[#3, line width=1pt, rotate=\a] (0.2,0) .. controls (0.5,0.5) .. (1,0) .. controls (0.5,-0.5) .. (0.2,0); } \end{scope}} |
| 57 |
\newcommand{\NaOrnaTwentyNine}[3]{\begin{scope}[shift={#1}, scale=#2] \foreach \a in {0,90,...,270} { \draw[#3, line width=1.2pt, rotate=\a] (0.3,0) -- (1.2,0.8); \draw[#3, line width=1.2pt, rotate=\a] (0.3,0) -- (1.2,-0.8); } \end{scope}} |
| 58 |
|
| 59 |
\newcommand{\NaOrnaThirty}[3]{\begin{scope}[shift={#1}, scale=#2] \foreach \a in {0,45,...,315} { \draw[#3, line width=1.2pt, rotate=\a] (0.2,0) -- (1.2,0.5) -- (1.2,-0.5) -- cycle; } \draw[#3, line width=1pt, double] (0,0) circle (0.3); \end{scope}} |
| 60 |
\newcommand{\NaOrnaThirtyOne}[3]{\begin{scope}[shift={#1}, scale=#2] \draw[#3, line width=1.3pt] (0:1) -- (90:1) -- (180:1) -- (270:1) -- cycle; \draw[#3, line width=1.3pt, rotate=45] (0:1) -- (90:1) -- (180:1) -- (270:1) -- cycle; \foreach \a in {0,45,...,315} { \fill[#3] (\a:1.1) circle (2pt); } \end{scope}} |
| 61 |
\newcommand{\NaOrnaThirtyTwo}[3]{\begin{scope}[shift={#1}, scale=#2] \foreach \a in {0,30,...,330} { \draw[#3, line width=1pt, rotate=\a] (0.2,0) .. controls (0.7,0.5) and (1.2,0.5) .. (1.5,0); \draw[#3, line width=1pt, rotate=\a] (0.2,0) .. controls (0.7,-0.5) and (1.2,-0.5) .. (1.5,0); } \fill[white, draw=#3] (0,0) circle (0.3); \end{scope}} |
| 62 |
\newcommand{\NaOrnaThirtyThree}[3]{\begin{scope}[shift={#1}, scale=#2] \foreach \a in {0,60,...,300} { \draw[#3, line width=1.2pt, rotate=\a] (0.3,0) -- (1.4,0.4) -- (1.4,-0.4) -- cycle; } \draw[#3, double] (0,0) circle (0.4); \end{scope}} |
| 63 |
\newcommand{\NaOrnaThirtyFour}[3]{\begin{scope}[shift={#1}, scale=#2] \foreach \a in {0,90,180,270} { \draw[#3, line width=1.2pt, rotate=\a] (0,0) -- (1,0) -- (1,1) -- (0,1) -- cycle; \draw[#3, line width=1pt, rotate=\a] (0.5,0.5) circle (0.4); } \end{scope}} |
| 64 |
|
| 65 |
\makeatletter |
| 66 |
\newcommand{\natikzornament}[3]{% |
| 67 |
\sbox{\tilenaam}{% |
| 68 |
\begin{tikzpicture}[x=1cm,y=1cm] |
| 69 |
\clip (0,0) rectangle (2,2); |
| 70 |
\begin{scope}[opacity=#3] |
| 71 |
\foreach \x in {0,1} \foreach \y in {0,1} { |
| 72 |
\ifnum#1=1 \NaOrnaOne{(2*\x, 2*\y)}{0.4}{#2} \NaOrnaOne{(2*\x+1, 2*\y+1)}{0.4}{#2} \fi |
| 73 |
\ifnum#1=2 \NaOrnaTwo{(2*\x, 2*\y)}{0.4}{#2} \NaOrnaTwo{(2*\x+1, 2*\y+1)}{0.4}{#2} \fi |
| 74 |
\ifnum#1=3 \NaOrnaThree{(2*\x, 2*\y)}{0.45}{#2} \NaOrnaThree{(2*\x+1, 2*\y+1)}{0.45}{#2} \fi |
| 75 |
\ifnum#1=4 \NaOrnaFour{(2*\x, 2*\y)}{0.45}{#2} \NaOrnaFour{(2*\x+1, 2*\y+1)}{0.45}{#2} \fi |
| 76 |
\ifnum#1=5 \NaOrnaFive{(2*\x, 2*\y)}{0.45}{#2} \NaOrnaFive{(2*\x+1, 2*\y+1)}{0.45}{#2} \fi |
| 77 |
\ifnum#1=6 \NaOrnaSix{(2*\x, 2*\y)}{0.4}{#2} \NaOrnaSix{(2*\x+1, 2*\y+1)}{0.4}{#2} \fi |
| 78 |
\ifnum#1=7 \NaOrnaSeven{(2*\x, 2*\y)}{0.4}{#2} \NaOrnaSeven{(2*\x+1, 2*\y+1)}{0.4}{#2} \fi |
| 79 |
\ifnum#1=8 \NaOrnaEight{(2*\x, 2*\y)}{0.4}{#2} \NaOrnaEight{(2*\x+1, 2*\y+1)}{0.4}{#2} \fi |
| 80 |
\ifnum#1=9 \NaOrnaNine{(2*\x, 2*\y)}{0.4}{#2} \NaOrnaNine{(2*\x+1, 2*\y+1)}{0.4}{#2} \fi |
| 81 |
\ifnum#1=10 \NaOrnaTen{(2*\x, 2*\y)}{0.4}{#2} \NaOrnaTen{(2*\x+1, 2*\y+1)}{0.4}{#2} \fi |
| 82 |
\ifnum#1=11 \NaOrnaEleven{(2*\x-0.2, 2*\y-0.2)}{0.5}{Red2} \NaOrnaEleven{(2*\x+0.8, 2*\y+0.8)}{0.5}{Gold1} |
| 83 |
\NaOrnaEleven{(2*\x+0.8, 2*\y-0.2)}{0.5}{RoyalBlue1} \NaOrnaEleven{(2*\x-0.2, 2*\y+0.8)}{0.5}{SpringGreen3} \fi |
| 84 |
\ifnum#1=12 \NaOrnaTwelve{(2*\x, 2*\y)}{0.6}{#2} \NaOrnaTwelve{(2*\x+1, 2*\y+1)}{0.6}{#2} \fi |
| 85 |
\ifnum#1=13 \NaOrnaThirteen{(2*\x, 2*\y)}{0.6}{#2} \NaOrnaThirteen{(2*\x+1, 2*\y+1)}{0.6}{#2} \fi |
| 86 |
\ifnum#1=14 \NaOrnaFourteen{(2*\x, 2*\y)}{0.6}{#2} \NaOrnaFourteen{(2*\x+1, 2*\y+1)}{0.6}{#2} \fi |
| 87 |
\ifnum#1=15 \NaOrnaFifteen{(2*\x, 2*\y)}{0.6}{#2} \NaOrnaFifteen{(2*\x+1, 2*\y+1)}{0.6}{#2} \fi |
| 88 |
\ifnum#1=16 \NaOrnaSixteen{(2*\x, 2*\y)}{0.6}{#2} \NaOrnaSixteen{(2*\x+1, 2*\y+1)}{0.6}{#2} \fi |
| 89 |
\ifnum#1=17 \NaOrnaSeventeen{(2*\x, 2*\y)}{0.6}{#2} \NaOrnaSeventeen{(2*\x+1, 2*\y+1)}{0.6}{#2} \fi |
| 90 |
\ifnum#1=18 \NaOrnaEighteen{(2*\x, 2*\y)}{0.5}{#2} \NaOrnaEighteen{(2*\x+1, 2*\y+1)}{0.5}{#2} \fi |
| 91 |
\ifnum#1=19 \NaOrnaNineteen{(2*\x, 2*\y)}{0.6}{#2} \NaOrnaNineteen{(2*\x+1, 2*\y+1)}{0.6}{#2} \fi |
| 92 |
\ifnum#1=20 \NaOrnaTwenty{(2*\x, 2*\y)}{0.6}{#2} \NaOrnaTwenty{(2*\x+1, 2*\y+1)}{0.6}{#2} \fi |
| 93 |
\ifnum#1=21 \NaOrnaTwentyOne{(2*\x, 2*\y)}{0.6}{#2} \NaOrnaTwentyOne{(2*\x+1, 2*\y+1)}{0.6}{#2} \fi |
| 94 |
\ifnum#1=22 \NaOrnaTwentyTwo{(2*\x, 2*\y)}{0.6}{#2} \NaOrnaTwentyTwo{(2*\x+1, 2*\y+1)}{0.6}{#2} \fi |
| 95 |
\ifnum#1=23 \NaOrnaTwentyThree{(2*\x, 2*\y)}{0.6}{#2} \NaOrnaTwentyThree{(2*\x+1, 2*\y+1)}{0.6}{#2} \fi |
| 96 |
\ifnum#1=24 \NaOrnaTwentyFour{(2*\x, 2*\y)}{0.6}{#2} \NaOrnaTwentyFour{(2*\x+1, 2*\y+1)}{0.6}{#2} \fi |
| 97 |
\ifnum#1=25 \NaOrnaTwentyFive{(2*\x, 2*\y)}{0.6}{#2} \NaOrnaTwentyFive{(2*\x+1, 2*\y+1)}{0.6}{#2} \fi |
| 98 |
\ifnum#1=26 \NaOrnaTwentySix{(2*\x, 2*\y)}{0.6}{#2} \NaOrnaTwentySix{(2*\x+1, 2*\y+1)}{0.6}{#2} \fi |
| 99 |
\ifnum#1=27 \NaOrnaTwentySeven{(2*\x, 2*\y)}{0.5}{#2} \NaOrnaTwentySeven{(2*\x+1, 2*\y+1)}{0.5}{#2} \fi |
| 100 |
\ifnum#1=28 \NaOrnaTwentyEight{(2*\x, 2*\y)}{0.6}{#2} \NaOrnaTwentyEight{(2*\x+1, 2*\y+1)}{0.6}{#2} \fi |
| 101 |
\ifnum#1=29 \NaOrnaTwentyNine{(2*\x, 2*\y)}{0.6}{#2} \NaOrnaTwentyNine{(2*\x+1, 2*\y+1)}{0.6}{#2} \fi |
| 102 |
\ifnum#1=30 \NaOrnaThirty{(2*\x, 2*\y)}{0.5}{#2} \NaOrnaThirty{(2*\x+1, 2*\y+1)}{0.5}{#2} \fi |
| 103 |
\ifnum#1=31 \NaOrnaThirtyOne{(2*\x, 2*\y)}{0.6}{#2} \NaOrnaThirtyOne{(2*\x+1, 2*\y+1)}{0.6}{#2} \fi |
| 104 |
\ifnum#1=32 \NaOrnaThirtyTwo{(2*\x, 2*\y)}{0.5}{#2} \NaOrnaThirtyTwo{(2*\x+1, 2*\y+1)}{0.5}{#2} \fi |
| 105 |
\ifnum#1=33 \NaOrnaThirtyThree{(2*\x, 2*\y)}{0.5}{#2} \NaOrnaThirtyThree{(2*\x+1, 2*\y+1)}{0.5}{#2} \fi |
| 106 |
\ifnum#1=34 \NaOrnaThirtyFour{(2*\x, 2*\y)}{0.5}{#2} \NaOrnaThirtyFour{(2*\x+1, 2*\y+1)}{0.5}{#2} \fi |
| 107 |
} |
| 108 |
\end{scope} |
| 109 |
\end{tikzpicture}% |
| 110 |
}% |
| 111 |
} |
| 112 |
\@ifundefined{tilenaam}{\newsavebox{\tilenaam}}{} |
| 113 |
\newcommand{\naFillTile}{% |
| 114 |
% استخراج أبعاد المنطقة المراد ملؤها |
| 115 |
\pgfextractx{\pgf@x}{\pgfpointdiff{\pgfpointanchor{path picture bounding box}{south west}}{\pgfpointanchor{path picture bounding box}{north east}}}% |
| 116 |
\edef\pw{\the\pgf@x}% |
| 117 |
\pgfextracty{\pgf@y}{\pgfpointdiff{\pgfpointanchor{path picture bounding box}{south west}}{\pgfpointanchor{path picture bounding box}{north east}}}% |
| 118 |
\edef\ph{\the\pgf@y}% |
| 119 |
% قياس أبعاد الزخرفة الخاصة بك (يفترض أن \tilenaam معرف في الحزمة) |
| 120 |
\pgfmathsetmacro{\tw}{\wd\tilenaam}% |
| 121 |
\pgfmathsetmacro{\th}{\ht\tilenaam + \dp\tilenaam}% |
| 122 |
% حساب التكرار |
| 123 |
\pgfmathsetmacro{\nx}{ceil(\pw/\tw)}% |
| 124 |
\pgfmathsetmacro{\ny}{ceil(\ph/\th)}% |
| 125 |
% تنفيذ التكرار |
| 126 |
\foreach \i in {0,...,\nx} {% |
| 127 |
\foreach \j in {0,...,\ny} {% |
| 128 |
\node[anchor=south west, inner sep=0pt] |
| 129 |
at ([shift={(\i*\tw pt, \j*\th pt)}]path picture bounding box.south west) {\usebox{\tilenaam}};% |
| 130 |
}% |
| 131 |
}% |
| 132 |
} |
| 133 |
|
| 134 |
\tikzset{ |
| 135 |
tile fill/.style={ |
| 136 |
path picture={\naFillTile} |
| 137 |
} |
| 138 |
} |
| 139 |
\makeatother |
| 140 |
\endinput |
| 141 |
%% |
| 142 |
%% End of file `na-tikzornament.sty'. |