Skip to content

Commit

Permalink
simplified code by using .store in instead of .code
Browse files Browse the repository at this point in the history
  • Loading branch information
samcarter committed Jun 17, 2022
1 parent 352aeff commit db14eab
Show file tree
Hide file tree
Showing 24 changed files with 107 additions and 107 deletions.
4 changes: 2 additions & 2 deletions tikzlings-anteaters.sty
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@
% body
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
body/.code = \def\anteater@body{#1},
body/.store in = \anteater@body,
body = red!55!green!75!blue!66!white,
eye/.code = \def\anteater@eye{#1},
eye/.store in = \anteater@eye,
eye = \anteater@body!70!brown!50!darkgray,
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
Expand Down
14 changes: 7 additions & 7 deletions tikzlings-bats.sty
Original file line number Diff line number Diff line change
Expand Up @@ -47,19 +47,19 @@
% body
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
body/.code = \def\bat@body{#1},
body/.store in = \bat@body,
body = black!75!white,
ears/.code = \def\bat@ears{#1},
ears/.store in = \bat@ears,
ears = \bat@body,
eye/.code = \def\bat@eye{#1},
eye/.store in = \bat@eye,
eye = white,
pupil/.code = \def\bat@pupil{#1},
pupil/.store in = \bat@pupil,
pupil = black,
mouth/.code = \def\bat@mouth{#1},
mouth/.store in = \bat@mouth,
mouth = black,
feet/.code = \def\bat@feet{#1},
feet/.store in = \bat@feet,
feet = orange,
wings/.code = \def\bat@wings{#1},
wings/.store in = \bat@wings,
wings = 1,
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
Expand Down
6 changes: 3 additions & 3 deletions tikzlings-bears.sty
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@
% body
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
body/.code = \def\bear@body{#1},
body/.store in = \bear@body,
body = brown,
eye/.code = \def\bear@eye{#1},
eye/.store in = \bear@eye,
eye = \bear@body!30!black,
mouth/.code = \def\bear@mouth{#1},
mouth/.store in = \bear@mouth,
mouth = \bear@body!30!black,
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
Expand Down
14 changes: 7 additions & 7 deletions tikzlings-bees.sty
Original file line number Diff line number Diff line change
Expand Up @@ -46,19 +46,19 @@
% body
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
body/.code = \def\bee@body{#1},
body/.store in = \bee@body,
body = yellow!70!orange,
hands/.code = \def\bee@hands{#1},
hands/.store in = \bee@hands,
hands = black,
wings/.code = \def\bee@wings{#1},
wings/.store in = \bee@wings,
wings = blue!20!cyan!30!white,
stripes/.code = \def\bee@stripes{#1},
stripes/.store in = \bee@stripes,
stripes = black,
antennas/.code = \def\bee@antennas{#1},
antennas/.store in = \bee@antennas,
antennas = black,
eye/.code = \def\bee@eye{#1},
eye/.store in = \bee@eye,
eye = black,
mouth/.code = \def\bee@mouth{#1},
mouth/.store in = \bee@mouth,
mouth = black,
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
Expand Down
18 changes: 9 additions & 9 deletions tikzlings-bugs.sty
Original file line number Diff line number Diff line change
Expand Up @@ -46,23 +46,23 @@
% body
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
body/.code = \def\bug@body{#1},
body/.store in = \bug@body,
body = black!90!white,
arms/.code = \def\bug@arms{#1},
arms/.store in = \bug@arms,
arms = red!80!black,
wings/.code = \def\bug@wings{#1},
wings/.store in = \bug@wings,
wings = red!80!black,
dots/.code = \def\bug@dots{#1},
dots/.store in = \bug@dots,
dots = black!90!white,
antennas/.code = \def\bug@antennas{#1},
antennas/.store in = \bug@antennas,
antennas = red!80!black,
eye/.code = \def\bug@eye{#1},
eye/.store in = \bug@eye,
eye = white,
pupil/.code = \def\bug@pupil{#1},
pupil/.store in = \bug@pupil,
pupil = black,
mouth/.code = \def\bug@mouth{#1},
mouth/.store in = \bug@mouth,
mouth = red,
feet/.code = \def\bug@feet{#1},
feet/.store in = \bug@feet,
feet = red!80!black,
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
Expand Down
12 changes: 6 additions & 6 deletions tikzlings-cats.sty
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,14 @@
% body
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
body/.code = \def\cat@body{#1},
body/.store in = \cat@body,
body = gray!30!black,
whiskers/.code = \def\cat@whiskers{#1},
whiskers/.store in = \cat@whiskers,
whiskers = gray!50!white,
eye/.code = \def\cat@eye{#1},
eye/.store in = \cat@eye,
eye = yellow!80!orange,
eyes/.forward to = /cat/eye,
pupil/.code = \def\cat@pupil{#1},
pupil/.store in = \cat@pupil,
pupil = black,
pupilwidth/.code = \def\cat@pupil@width{#1}
\edef\cat@pupil@offset{\strip@pt\dimexpr#1pt/4},
Expand All @@ -94,9 +94,9 @@
very wide pupils/.code = \def\cat@pupil@width{0.050}
\edef\cat@pupil@offset{\strip@pt\dimexpr 0.050pt/4},
pupil width = 0.015,
paws/.code = \def\cat@paws{#1},
paws/.store in = \cat@paws,
paws = \cat@body,
nose/.code = \def\cat@nose{#1},
nose/.store in = \cat@nose,
nose = red!40!white!80!gray,
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
Expand Down
12 changes: 6 additions & 6 deletions tikzlings-chickens.sty
Original file line number Diff line number Diff line change
Expand Up @@ -52,17 +52,17 @@
% body
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
body/.code = \def\chicken@body{#1},
body/.store in = \chicken@body,
body = brown!50!orange!70!yellow!80!white,
eye/.code = \def\chicken@eye{#1},
eye/.store in = \chicken@eye,
eye = white!90!gray,
pupil/.code = \def\chicken@pupil{#1},
pupil/.store in = \chicken@pupil,
pupil = brown!30!black,
bill/.code = \def\chicken@bill{#1},
bill/.store in = \chicken@bill,
bill = yellow,
feet/.code = \def\chicken@feet{#1},
feet/.store in = \chicken@feet,
feet = orange!90!yellow,
comb/.code = \def\chicken@comb{#1},
comb/.store in = \chicken@comb,
comb = red,
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
Expand Down
6 changes: 3 additions & 3 deletions tikzlings-coatis.sty
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@
% body
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
body/.code = \def\coati@body{#1},
body/.store in = \coati@body,
body = brown!50!darkgray!97!yellow,
eye/.code = \def\coati@eye{#1},
eye/.store in = \coati@eye,
eye = \coati@body!50!black,
rotatehead/.code = \def\coati@rotatehead{#1},
rotatehead/.store in = \coati@rotatehead,
rotate head/.forward to = /coati/rotatehead,
rotatehead = 0,
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Expand Down
4 changes: 2 additions & 2 deletions tikzlings-elephants.sty
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@
% body
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
body/.code = \def\elephant@body{#1},
body/.store in = \elephant@body,
body = gray,
eye/.code = \def\elephant@eye{#1},
eye/.store in = \elephant@eye,
eye = \elephant@body!30!black,
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
Expand Down
10 changes: 5 additions & 5 deletions tikzlings-hippos.sty
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,15 @@
% body
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
body/.code = \def\hippo@body{#1},
body/.store in = \hippo@body,
body = gray,
eye/.code = \def\hippo@eye{#1},
eye/.store in = \hippo@eye,
eye = white,
pupil/.code = \def\hippo@pupil{#1},
pupil/.store in = \hippo@pupil,
pupil = black,
toes/.code = \def\hippo@toes{#1},
toes/.store in = \hippo@toes,
toes = \hippo@body!55!white,
mouth/.code = \def\hippo@mouth{#1},
mouth/.store in = \hippo@mouth,
mouth = \hippo@body!70!black,
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
Expand Down
6 changes: 3 additions & 3 deletions tikzlings-koalas.sty
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@
% body
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
body/.code = \def\koala@body{#1},
body/.store in = \koala@body,
body = gray!75!white,
eye/.code = \def\koala@eye{#1},
eye/.store in = \koala@eye,
eye = black,
mouth/.code = \def\koala@mouth{#1},
mouth/.store in = \koala@mouth,
mouth = \koala@body!40!black,
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
Expand Down
6 changes: 3 additions & 3 deletions tikzlings-marmots.sty
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,11 @@
% body
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
body/.code = \def\marmot@body{#1},
body/.store in = \marmot@body,
body = brown,
eye/.code = \def\marmot@eye{#1},
eye/.store in = \marmot@eye,
eye = \marmot@body!50!black,
mouth/.code = \def\marmot@mouth{#1},
mouth/.store in = \marmot@mouth,
mouth = \marmot@body!50!black,
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
Expand Down
6 changes: 3 additions & 3 deletions tikzlings-mice.sty
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@
% body
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
body/.code = \def\mouse@body{#1},
body/.store in = \mouse@body,
body = gray!90!white,
eye/.code = \def\mouse@eye{#1},
eye/.store in = \mouse@eye,
eye = \mouse@body!50!black,
whiskers/.code = \def\mouse@whiskers{#1},
whiskers/.store in = \mouse@whiskers,
whiskers = \mouse@body!50!black,
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
Expand Down
12 changes: 6 additions & 6 deletions tikzlings-moles.sty
Original file line number Diff line number Diff line change
Expand Up @@ -46,17 +46,17 @@
% body
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
body/.code = \def\moles@body{#1},
body/.store in = \moles@body,
body = gray,
eye/.code = \def\moles@eye{#1},
eye/.store in = \moles@eye,
eye = \moles@body!60!black,
feet/.code = \def\moles@feet{#1},
feet/.store in = \moles@feet,
feet = red!20!white!50!brown,
hands/.code = \def\moles@hands{#1},
hands/.store in = \moles@hands,
hands = red!20!white!50!brown,
muzzle/.code = \def\moles@muzzle{#1},
muzzle/.store in = \moles@muzzle,
muzzle = red!20!white!50!brown,
mouth/.code = \def\moles@mouth{#1},
mouth/.store in = \moles@mouth,
mouth = \moles@body!60!black,
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
Expand Down
10 changes: 5 additions & 5 deletions tikzlings-owls.sty
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,15 @@
% body
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
body/.code = \def\owl@body{#1},
body/.store in = \owl@body,
body = brown!70!black,
eye/.code = \def\owl@eye{#1},
eye/.store in = \owl@eye,
eye = white!90!gray,
pupil/.code = \def\owl@pupil{#1},
pupil/.store in = \owl@pupil,
pupil = brown!30!black,
bill/.code = \def\owl@bill{#1},
bill/.store in = \owl@bill,
bill = orange,
feet/.code = \def\owl@feet{#1},
feet/.store in = \owl@feet,
feet = orange,
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
Expand Down
8 changes: 4 additions & 4 deletions tikzlings-pandas.sty
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@
% body
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
body/.code = \def\panda@body{#1},
body/.store in = \panda@body,
body = white!90!black,
eye/.code = \def\panda@eye{#1},
eye/.store in = \panda@eye,
eye = white,
pupil/.code = \def\panda@pupil{#1},
pupil/.store in = \panda@pupil,
pupil = black,
mouth/.code = \def\panda@mouth{#1},
mouth/.store in = \panda@mouth,
mouth = black,
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
Expand Down
12 changes: 6 additions & 6 deletions tikzlings-penguins.sty
Original file line number Diff line number Diff line change
Expand Up @@ -46,17 +46,17 @@
% body
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
body/.code = \def\penguin@body{#1},
body/.store in = \penguin@body,
body = black,
belly/.code = \def\penguin@belly{#1},
belly/.store in = \penguin@belly,
belly = white!95!black,
feet/.code = \def\penguin@feet{#1},
feet/.store in = \penguin@feet,
feet = yellow!50!orange,
bill/.code = \def\penguin@bill{#1},
bill/.store in = \penguin@bill,
bill = orange,
eye/.code = \def\penguin@eye{#1},
eye/.store in = \penguin@eye,
eye = white!95!black,
pupil/.code = \def\penguin@pupil{#1},
pupil/.store in = \penguin@pupil,
pupil = black,
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
Expand Down
8 changes: 4 additions & 4 deletions tikzlings-pigs.sty
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@
% body
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
body/.code = \def\pig@body{#1},
body/.store in = \pig@body,
body = pigdark,
eye/.code = \def\pig@eye{#1},
eye/.store in = \pig@eye,
eye = gray,
tail/.code = \def\pig@tail{#1},
tail/.store in = \pig@tail,
tail = \pig@body,
mouth/.code = \def\pig@mouth{#1},
mouth/.store in = \pig@mouth,
mouth = gray,
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
Expand Down
10 changes: 5 additions & 5 deletions tikzlings-rhinos.sty
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,15 @@
% body
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
body/.code = \def\rhino@body{#1},
body/.store in = \rhino@body,
body = gray,
toes/.code = \def\rhino@toes{#1},
toes/.store in = \rhino@toes,
toes = \rhino@body!55!white,
eye/.code = \def\rhino@eye{#1},
eye/.store in = \rhino@eye,
eye = white,
pupil/.code = \def\rhino@pupil{#1},
pupil/.store in = \rhino@pupil,
pupil = black,
mouth/.code = \def\rhino@mouth{#1},
mouth/.store in = \rhino@mouth,
mouth = \rhino@body!70!black,
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
Expand Down
Loading

0 comments on commit db14eab

Please sign in to comment.