CAEmitterCell documentation: how does color mix with asset color?
||Date Originated:||13-Mar-2017 05:15 PM|
Documentation at https://developer.apple.com/reference/quartzcore/caemittercell/1522322-color, accessed 13 March 2017, says that “the default value of this property is a color object set to opaque white.” From this, and through experimentation, I believe I have determined that the color of the emitter is the value of the `.color` property multiplied per-channel with the colors in the image that is set as the `.contents` of the emitter cell.
This is unexpected, because if I set a `.color`, I would expect it to override the color of the asset, or else the documentation should explicitly call out how the color is applied. The upshot is that, to create an asset that is tintable at run time, I had to set its contents to a pure white image with an alpha channel.
This was the result of some experimentation, and the documentation should call it out explicitly.
Reports posted here will not necessarily be seen by Apple.
All problems should be submitted at bugreport.apple.com before they are posted here.
Please only post information for Radars that you have filed yourself, and please do
not include Apple confidential information in your posts. Thank you!