가장자리가 물결 모양이고 그 뒤에 그림자가 있는 숫자 카드

가장자리가 물결 모양이고 그 뒤에 그림자가 있는 숫자 카드

이것은 내 mwe인데 별로 좋지 않습니다. 첨부한 사진처럼 간단하게 만들고 싶고, 크고 작게 만들 수 있고, 개별 카드도 만들 수 있어서 카드의 숫자를 바꿀 수 있고 배경의 그림자도 좋을 것 같아요.여기에 이미지 설명을 입력하세요

\documentclass{article}
\usepackage{tikz}

\usetikzlibrary{shadows.blur}
\usetikzlibrary{shapes.symbols}

\begin{document}
    
    
    \begin{center}
        \begin{tikzpicture}
            
            \node[draw=none,shade, scale=3,
            top color=blue!40,
            bottom color=blue!5,
            rounded corners=6pt,
            blur shadow={shadow blur steps=5}
            ] {\sffamily\bfseries\large 1 };
                        \node[tape,draw=none,shade, scale=3,
            top color=blue!40,
            bottom color=blue!5,
            rounded corners=1pt,
            blur shadow={shadow blur steps=5,shadow blur extra rounding=1.3pt}
            ] at (5,0){\sffamily\bfseries\large 2};
\node [below] at (-2,0.5) { \huge Jack};    
                \end{tikzpicture}
    \end{center}

\end{document}

답변1

둥근 카드를 얻기 위해 star모양을 사용하고 rounded corners설정할 수 있습니다 .star point ratio

여기에 이미지 설명을 입력하세요

\documentclass{article}

\usepackage{tikz}
\usetikzlibrary{shapes.geometric, shadows}
\tikzset{
    card/.style={
        star, star points=4, star point ratio=1.47, 
        draw, rounded corners, shape border rotate=45, fill=white,
        general shadow={fill=gray!20, shadow scale=1.2}, 
        inner sep=0pt, minimum size=7mm, font=\sffamily\bfseries, 
        yscale=1.4, scale=2
    }
}

\newcommand{\card}[2][]{\tikz[baseline, #1]{\node[card]{#2};}}

\begin{document}
\pgfmathsetseed{12}
Jack \foreach \c[count=\n] in {7,3,2,6,9,7} {\card[transform shape, rotate=6-2*\n+3*rand]{\c}\;\;}

\bigskip
Jodie \foreach \c[count=\n] in {4,8,9,0,0,7} {\card[transform shape, rotate=6-2*\n+3*rand]{\c}\;\;}

\bigskip
Scaled \foreach \c[count=\n] in {A,B,C,D,E,F} {\card[transform shape, scale=.7]{\c}\;\;}

\bigskip
Single \card{?}
\end{document}

답변2

이것은 내가 이해하지 못하고 가지고 놀 수 없는 웹사이트에서 빌린 것을 생각해 낼 수 있는 최선의 방법입니다. 누군가가 더 간단하게 설명할 수 있습니까? 작동합니다

    % !TeX program = xelatex
% !TeX spellcheck = en_GB
\documentclass[12pt,addpoints]{exam}
\usepackage[margin=15mm]{geometry}
\usepackage{tikz}
\usepackage{pifont} 
\usepackage{anttor}
\usepackage[normalem]{ulem}

%\renewcommand\ULthickness{4pt}
%\setlength \ULdepth{16pt}
\begin{document}
    \pgfmathsetmacro{\cardwidth}{2}
    \pgfmathsetmacro{\cardheight}{3}
    \pgfmathsetmacro{\stripwidth}{0.6}
    \pgfmathsetmacro{\strippadding}{0.1}
    \pgfmathsetmacro{\textpadding}{-0.3}
    \pgfmathsetmacro{\ruleheight}{0.1}
    
    \newcommand\myfontsize{\fontsize{50pt}{50pt}\selectfont}

Jack과 Jodie는 카드 게임을 하고 있었습니다. 각 플레이어는 6장의 카드를 받았습니다.

게임의 목적은 카드 패를 재배열하여 가장 큰 숫자를 만드는 것이었습니다.

\begin{tikzpicture}
    \draw [] (0,0) ;
    \node[align=left] at (0,2) { \Large \color{blue}  \textbf{Jack's } \\ \large \color{blue} \textbf{Cards }  };
\end{tikzpicture}
\begin{tikzpicture}
    \draw[rounded corners=0.2cm, very thick,color=blue] (0,0) rectangle (\cardwidth,\cardheight);
    \fill[white,rounded corners=0.1cm] (\strippadding,\strippadding) rectangle (\strippadding+\stripwidth,\cardheight-\strippadding);
    \node[text width=(\cardwidth-\strippadding-\stripwidth-2*\textpadding-0.3)*1cm,below right,   ] at (\strippadding+\stripwidth+\textpadding,\cardheight-\textpadding) {
        {          }\\
        
        \vspace{0.9cm}
        
        { \myfontsize 7    } 
        \vfill   };
\end{tikzpicture}
\begin{tikzpicture}
    \draw[rounded corners=0.2cm, very thick,color=blue] (0,0) rectangle (\cardwidth,\cardheight);
    \fill[white,rounded corners=0.1cm] (\strippadding,\strippadding) rectangle (\strippadding+\stripwidth,\cardheight-\strippadding);
    \node[text width=(\cardwidth-\strippadding-\stripwidth-2*\textpadding-0.3)*1cm,below right] at (\strippadding+\stripwidth+\textpadding,\cardheight-\textpadding) {
        {          }\\
        
        \vspace{0.9cm}
        
        { \myfontsize 3    } 
        \vfill   };
\end{tikzpicture}   
\begin{tikzpicture}
    \draw[rounded corners=0.2cm, very thick,color=blue] (0,0) rectangle (\cardwidth,\cardheight);
    \fill[white,rounded corners=0.1cm] (\strippadding,\strippadding) rectangle (\strippadding+\stripwidth,\cardheight-\strippadding);
    \node[text width=(\cardwidth-\strippadding-\stripwidth-2*\textpadding-0.3)*1cm,below right] at (\strippadding+\stripwidth+\textpadding,\cardheight-\textpadding) {
        {          }\\
        
        \vspace{0.9cm}
        
        { \myfontsize 2    } 
        \vfill   };
\end{tikzpicture}
\begin{tikzpicture}
    \draw[rounded corners=0.2cm, very thick,color=blue] (0,0) rectangle (\cardwidth,\cardheight);
    \fill[white,rounded corners=0.1cm] (\strippadding,\strippadding) rectangle (\strippadding+\stripwidth,\cardheight-\strippadding);
    \node[text width=(\cardwidth-\strippadding-\stripwidth-2*\textpadding-0.3)*1cm,below right] at (\strippadding+\stripwidth+\textpadding,\cardheight-\textpadding) {
        {          }\\
        
        \vspace{0.9cm}
        
        { \myfontsize 6    } 
        \vfill   };
\end{tikzpicture}
\begin{tikzpicture}
    \draw[rounded corners=0.2cm, very thick,color=blue] (0,0) rectangle (\cardwidth,\cardheight);
    \fill[white,rounded corners=0.1cm] (\strippadding,\strippadding) rectangle (\strippadding+\stripwidth,\cardheight-\strippadding);
    \node[text width=(\cardwidth-\strippadding-\stripwidth-2*\textpadding-0.3)*1cm,below right] at (\strippadding+\stripwidth+\textpadding,\cardheight-\textpadding) {
        {          }\\
        
        \vspace{0.9cm}
        
        { \myfontsize 9    } 
        \vfill   };
\end{tikzpicture}
\begin{tikzpicture}
    \draw[rounded corners=0.2cm, very thick,color=blue] (0,0) rectangle (\cardwidth,\cardheight);
    \fill[white,rounded corners=0.1cm] (\strippadding,\strippadding) rectangle (\strippadding+\stripwidth,\cardheight-\strippadding);
    \node[text width=(\cardwidth-\strippadding-\stripwidth-2*\textpadding-0.3)*1cm,below right] at (\strippadding+\stripwidth+\textpadding,\cardheight-\textpadding) {
        {          }\\
        
        \vspace{0.9cm}
        
        { \myfontsize 7    } 
        \vfill   };
\end{tikzpicture}   

\vspace{0.2cm}



\begin{tikzpicture}
    \draw [] (0,0) ;
    \node[align=left] at (0,2) { \Large \color{red}  \textbf{Jodie's } \\ \large \color{red} \textbf{Cards }  };
\end{tikzpicture}
\begin{tikzpicture}
    \draw[rounded corners=0.2cm, very thick,color=red] (0,0) rectangle (\cardwidth,\cardheight);
    \fill[white,rounded corners=0.1cm] (\strippadding,\strippadding) rectangle (\strippadding+\stripwidth,\cardheight-\strippadding);
    \node[text width=(\cardwidth-\strippadding-\stripwidth-2*\textpadding-0.3)*1cm,below right,   ] at (\strippadding+\stripwidth+\textpadding,\cardheight-\textpadding) {
        {          }\\
        
        \vspace{0.9cm}
        
        { \myfontsize  4   } 
        \vfill   };
\end{tikzpicture}
\begin{tikzpicture}
    \draw[rounded corners=0.2cm, very thick,color=red] (0,0) rectangle (\cardwidth,\cardheight);
    \fill[white,rounded corners=0.1cm] (\strippadding,\strippadding) rectangle (\strippadding+\stripwidth,\cardheight-\strippadding);
    \node[text width=(\cardwidth-\strippadding-\stripwidth-2*\textpadding-0.3)*1cm,below right] at (\strippadding+\stripwidth+\textpadding,\cardheight-\textpadding) {
        {          }\\
        
        \vspace{0.9cm}
        
        { \myfontsize 8   } 
        \vfill   };
\end{tikzpicture}   
\begin{tikzpicture}
    \draw[rounded corners=0.2cm, very thick,color=red] (0,0) rectangle (\cardwidth,\cardheight);
    \fill[white,rounded corners=0.1cm] (\strippadding,\strippadding) rectangle (\strippadding+\stripwidth,\cardheight-\strippadding);
    \node[text width=(\cardwidth-\strippadding-\stripwidth-2*\textpadding-0.3)*1cm,below right] at (\strippadding+\stripwidth+\textpadding,\cardheight-\textpadding) {
        {          }\\
        
        \vspace{0.9cm}
        
        { \myfontsize  9  } 
        \vfill   };
\end{tikzpicture}
\begin{tikzpicture}
    \draw[rounded corners=0.2cm, very thick,color=red] (0,0) rectangle (\cardwidth,\cardheight);
    \fill[white,rounded corners=0.1cm] (\strippadding,\strippadding) rectangle (\strippadding+\stripwidth,\cardheight-\strippadding);
    \node[text width=(\cardwidth-\strippadding-\stripwidth-2*\textpadding-0.3)*1cm,below right] at (\strippadding+\stripwidth+\textpadding,\cardheight-\textpadding) {
        {          }\\
        
        \vspace{0.9cm}
        
        { \myfontsize 0   } 
        \vfill   };
\end{tikzpicture}
\begin{tikzpicture}
    \draw[rounded corners=0.2cm, very thick,color=red] (0,0) rectangle (\cardwidth,\cardheight);
    \fill[white,rounded corners=0.1cm] (\strippadding,\strippadding) rectangle (\strippadding+\stripwidth,\cardheight-\strippadding);
    \node[text width=(\cardwidth-\strippadding-\stripwidth-2*\textpadding-0.3)*1cm,below right] at (\strippadding+\stripwidth+\textpadding,\cardheight-\textpadding) {
        {          }\\
        
        \vspace{0.9cm}
        
        { \myfontsize 0    } 
        \vfill   };
\end{tikzpicture}
\begin{tikzpicture}
    \draw[rounded corners=0.2cm, very thick,color=red] (0,0) rectangle (\cardwidth,\cardheight);
    \fill[white,rounded corners=0.1cm] (\strippadding,\strippadding) rectangle (\strippadding+\stripwidth,\cardheight-\strippadding);
    \node[text width=(\cardwidth-\strippadding-\stripwidth-2*\textpadding-0.3)*1cm,below right] at (\strippadding+\stripwidth+\textpadding,\cardheight-\textpadding) {
        {          }\\
        
        \vspace{0.9cm}
        
        { \myfontsize 7    } 
        \vfill   };
\end{tikzpicture}   


\end{document}

관련 정보