yes it should but should be
type red
field r,g,b
end type
type color
field color1.red
end type
color2.color = new color
color2\color1= new red
color2\color1\r = 255
color2\color1\g = 0
color2\color1\b = 0
type red
field r,g,b
end type
type color
field color1.red
end type
color2.color = new color
color2\color1= new red
color2\color1\r = 255
color2\color1\g = 0
color2\color1\b = 0