Hmm... Some things are not correct.
Field declarations should be "... : TBGRABitmap"
I'm not sure what it means, but I suppose Filebackground should be a TBGRABitmap instead of TBitmap and use Assign and Duplicate methods.
This is the output from a little program called CompCreate which is a component designer app. This is only a beginning framework of a component with multiple layers.
The idea is now to set up the Openwire pins in the public section. For instance the background could have have, say, 6 pins: 1)R 2)G 3)B 4)alpha 5)GradientStyle 6)Color2
And the THiPhi variables are holding scale values from the Fibonacci sequence. Idea is to pick positions from a scale of, say, 12 values from the 'Divine Proportion' or 'Golden Section' instead of ALL points within a range. This variable will have a pin for X and Y values picked from a list of the 12 values.
Also the THiphi can be used to make the ultimate color picker. Instead of just picking colors from all the possible ones available, we use the Golden Section to preselect colors that are 'harmonized' to color theory concepts.
Check THIS color picker out....
http://goldennumber.net/images/palette.gifThis will build color 'swatches' of colors decided from color theory concepts. Much better than just picking from the vast array of colors available.
This setup should allow us to simply connect 1,2,3,4 to a pin enabled slider, for instance, with no other coding. Plug and go.
In fact, this component will probably have LOTS of pins. But with it we should be able to easily 'rig' these up into any configuration we need without lots of coding all the events etc.
Please forgive the typos. It is just the beginnings of an outline so far. I haven't attempted to compile it yet(that is how I do spell checking, HAHA). I actually need to register the TBGRAbitmap into CompCreate yet.