I think I figured it out. I still have to test it carefully, but if anybody is interested in doing some tests for himself, here is the code to mix two colors:
local colorMix=function(c1\_R,c1\_G,c1\_B, c2\_R,c2\_G,c2\_B) local \_r = math.min((c1\_R + c2\_R),255)-1 local \_g = math.min((c1\_G + c2\_G),255)-1 local \_b = math.min((c1\_B + c2\_B),255)-1 print ("r= ", \_r) print ("g= ", \_g) print ("b= ", \_b) drawcircle=display.newCircle(0,0,100,100) drawcircle.x=300 drawcircle.y=200 drawcircle:setFillColor(\_r,\_g,\_b) end colorMix (255,0,0,0,0,255)
Best,
Daniela