void EmitColorProperty(string code, ref Color property, Color value) { if (property == value) return; property = value; EmitCodeIndex(code, GetColorIndex(value)); }