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.

inner ysep=10pt,(or some other value) do what you want? – Torbjørn T. Mar 29 '16 at 14:15rectangle split horizontalafterrectangle splitin thestatestyle. (Cf. the description ofrectangle splitin the manual, chapter 67.6 Shapes with multiple parts.) – Torbjørn T. Aug 12 '17 at 14:19