GithubHelp home page GithubHelp logo

Comments (4)

joulev avatar joulev commented on August 19, 2024

If I understand the code correctly, each animal has its own path. Unless the code is refactored so that all tikzlings share the same pgfkeys path (I believe this is the better way to handle the keys), I don't think that is possible.

from tikzlings.

samcarter avatar samcarter commented on August 19, 2024

For modifying every marmot, you could use

\documentclass{standalone}

\usepackage{tikzlings}
\tikzset{/marmot/teeth=white,/marmot/whiskers=gray}

\begin{document}

\begin{tikzpicture}
\bear
\end{tikzpicture}
\begin{tikzpicture}
\penguin
\end{tikzpicture}
\begin{tikzpicture}
\marmot
\end{tikzpicture}
\end{document}

from tikzlings.

samcarter avatar samcarter commented on August 19, 2024

To make all TikZlings 3D, one can modify this nice answer https://topanswers.xyz/tex?q=1569#a1820

\documentclass{standalone}

\usepackage{tikzlings}
\tikzset{tikzling 3D/.code={\tikzset{/#1/3D}}}
\tikzset{tikzling 3D/.list={anteater,bear,bee,cat,chicken,coati,  hippo,koala,marmot,mouse,moles,owl,panda,penguin,pig,rhino,sheep,  sloth,snowman,squirrel}}

\begin{document}

\begin{tikzpicture}
\bear
\end{tikzpicture}
\begin{tikzpicture}
\penguin
\end{tikzpicture}
\begin{tikzpicture}
\marmot
\end{tikzpicture}
\end{document}

P.S. If there is anyone with the necessary safety equipment to handle explosives, it might be possible to adapt

\ExplSyntaxOn
\cs_new:Npn \tikzlings_iteratesearch:N #1 {
\clist_map_function:NN #1 \__tikzlings_slashed_items:n
}
\cs_new:Npn \__tikzlings_slashed_items:n #1 {
/
\exp_not:N {
\__tikzlings_before_slashsearch:w #1 / \s_stop
}
,
}
\cs_new:Npn \__tikzlings_before_slashsearch:w #1 / #2 \s_stop {
\tl_trim_spaces:n {#1}
}
\cs_new_eq:NN \tikzling@iteratesearch \tikzlings_iteratesearch:N
\ExplSyntaxOff
to automatically generate this list from \tikzling@list

from tikzlings.

marmotghost avatar marmotghost commented on August 19, 2024

Thanks for the suggestions! I was thinking more of something like

\documentclass{article}
\usepackage{tikzlings}
\begin{document}
\tikzset{explicit every marmot/.style={/marmot/whiskers,/marmot/teeth}}
\tikz{\marmot[explicit every marmot]}

\tikz{\marmot}

\tikzset{every marmot set style/.code={\tikzset{/marmot/#1}},
every marmot/.code={\tikzset{every marmot set style/.list={#1}}}}
\tikzset{every marmot={whiskers,teeth}}

\tikz{\marmot}
\end{document}

but I am also not sure.

from tikzlings.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.