paint dynamic material

please help me, thank you so much;


this is brush material;

this is panel material;


when brush color is red, it can paint on the panel;
but when brush color RGB , R is zero, it can not paint;