attribute color as function color