Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]

Transparencies in object.fill doesn't work as expected
Started by juan.csdc Dec 21 2013 03:03 PM

No replies to this topic
android graphics 2.0 alpha ios
This topic has been archived. This means that you cannot reply to this topic.
[TOPIC: post.html]


[GLOBAL: userInfoPane.html]
  • Enthusiast

  • 69 posts
  • Corona SDK

Hi all,


I'm having a problem with my android and ios devices when using transparencies through the object.fill API. The alpha channel for Android merge the colours in a weird way, in some devices the green goes violet, in others yellow, please look my screenshot.


Basically I've an image as background, and then some layers with transparencies as:


obj = display.newRect(group, 0, 0, 100, 100)
obj.fill = {1, 1, 1, 0.5)

obj2 = display.newRect(group, 0, 0, 100, 100)
obj2.fill = {1, 1, 1, 0.3)


Do you have the same behaviour? I've tested this on several devices.