That's possible, of course.
My idea was setting a color by its RGB (int) values or by another color instance using the same method but I think it is not a very good idea to try to use such a flexible method after all.
This all started when I came to the situation where I wanted to set the color of an object where the data for that color was already stored in a TColor-object. So, I thought instead of:
perhaps I can write:
It looked like an elegant implementation but I think it's not. Better write two separate methods.
Sorry, bothering you.
My idea was setting a color by its RGB (int) values or by another color instance using the same method but I think it is not a very good idea to try to use such a flexible method after all.
This all started when I came to the situation where I wanted to set the color of an object where the data for that color was already stored in a TColor-object. So, I thought instead of:
SetTheColor(clr.GetRed(), clr.Get.Green(), clr.GetBlue())
perhaps I can write:
SetTheColor(clr)
It looked like an elegant implementation but I think it's not. Better write two separate methods.
Sorry, bothering you.