So I have tkiz style:
\tikzset{
state/.style={
rectangle,
rounded corners,
draw=black, very thick,
minimum height=2em,
inner sep=2pt,
text centered,
},
How I can split this rectangle to two parts, with different colors, like:
|----|
| red|
|----|
|blue|
|____|
And how I could write text in different lines, but in same part. Or I should another command?
Thanks in advance.
Best Answer
The
rectangle split
shape from theshapes.multipart
library can do this.