displaying 3D volume in RED

Hi,

I want to display my 3D volume (range from 0 to 255) in uniform red. I’ve thought of this code:

colorTransferFunction-> AddRGBPoint (0.0   0.0 0.0 0.0); // i don't know if with
                                            // these lines i actually display 'red'
colorTransferFunction-> AddRGBPoint (255.0 1.0 0.0 0.0);
colorTransferFunction-> AddRGBPoint (0.0   0.0 0.0 0.0);
colorTransferFunction-> AddRGBPoint (0.0   0.0 0.0 0.0);
colorTransferFunction-> AddRGBPoint (0.0   0.0 0.0 0.0);
volumeProperty->SetColor(colorTransferFunction);

but i receive this error for all the “AddRGBPoint” lines:

sintax error: ‘constant’

what am i doing wrong?

Thanks in advance for any help!

you are missing all the commas in the arguments.

    colorTransferFunction->AddRGBPoint(minvalueofscalar, 1, 0, 0);
    colorTransferFunction->AddRGBPoint(maxvalueofscalar, 1, 0, 0);

Thank you @marcomusy for your answer. I’ve put the commas and now the code is working.
Thank u!