public SymColor AddColorBottom(string name, short ocadId, float cyan, float magenta, float yellow, float black) { CheckWritable(); SymColor color = new SymColor(); color.Name = name; color.OcadId = ocadId; color.SetCMYK(cyan, magenta, yellow, black); colors.Insert(0, color); color.SetMap(this); symdefsDirty = true; return color; }
public SymColor AddColor(string name, short ocadId, float red, float green, float blue) { CheckWritable(); SymColor color = new SymColor(); color.Name = name; color.OcadId = ocadId; color.SetRGB(red, green, blue); colors.Add(color); color.SetMap(this); symdefsDirty = true; return color; }