I am trying to draw a square with lines behind a disc going off in all directions. Like a rising sun illustration. There must be better procedures that code this than calculating the coordinates of a circle with \usetikzlibrary{calc}
while using that in a \foreach
loop for the path ends coordinates and then cropping ...
Here is my own constructive procedure. Instead of calculating or clipping a loop steps around a square naming outer nodes. Then another loops draws a path which originates from an off center point to each name. So no clipping needed.
\documentclass[tikz,border=16mm]{standalone}
\def\nodings(#1){%
\foreach \x in {1,...,#1} {\foreach \y in {1,#1} {\node (noding\x-\y) at (\x,\y) {x};}}%
\foreach \y in {1,...,#1} {\foreach \x in {1,#1} {\node (noding\x-\y) at (\x,\y) {x};}}%
}
\def\outrays(#1,#2){%
\foreach \x in {1,...,#1} {\foreach \y in {1,#1} {\draw[line width=1pt,rounded corners=48pt,line cap=round,bend left=24](#2,#2) to (noding\x-\y);}}%
\foreach \y in {1,...,#1} {\foreach \x in {1,#1} {\draw[line width=1pt,rounded corners=48pt,line cap=round,bend left=24](#2,#2) to (noding\x-\y);}}%
}
\begin{document}\begin{tikzpicture}
\nodings(36)\outrays(36,24)
\node[circle,fill=white,text=cyan!50!black,text width=192mm] (mydisc) at (24,24) {\fontsize{128}{1}\selectfont NAME\\TITLE};
\end{tikzpicture}\end{document}
EDIT: in the end five procedures exist to construct this picture.
calc
package won't calculate TikZ coordinates, for that you need\usetikzlibrary{calc}
also perhaps a look at polar coordinates could help.(noding\x-\y)
such as to avoid overwriting node12-3 with node1-23, which would result in missing rays in your solution.