These are chat archives for openfl/programming

22nd
Feb 2018
Matthew Wallace
@matthewswallace_twitter
Feb 22 01:08

I’m trying to figure out how I can make the background of an X11 window transparent. I know the AIR target will do it but I don’t want to build for AIR. I’ve downloaded the lime repo and trying to hack around with it a bit to see if I can add support for this. Do any of you have any thoughts on how I could do this?

I’d like to be able to add something like <window transparent=“true”/> or if we do <window background=“null” /> in the project.xml file it would basically set the os window to be transparent.

Gary Paluk
@PluginIO
Feb 22 16:30

@jgranick - Very strange result from Flash:

var s: Sprite = new Sprite();
var t: Transform = new Transform(s);

trace(t.colorTransform);
trace(t.concatenatedColorTransform);
trace(t.concatenatedMatrix);
trace(t.matrix);

//(redMultiplier=1, greenMultiplier=1, blueMultiplier=1, alphaMultiplier=1, redOffset=0, greenOffset=0, blueOffset=0, alphaOffset=0)
//(redMultiplier=1, greenMultiplier=1, blueMultiplier=1, alphaMultiplier=1, redOffset=0, greenOffset=0, blueOffset=0, alphaOffset=0)
//(a=5, b=0, c=0, d=5, tx=0, ty=0)
//(a=1, b=0, c=0, d=1, tx=0, ty=0)

a = d = 5 ?? WTF :worried:

Anyway, obviously that can't be correct? Also, of course, this is not the output from OpenFl.

Gary Paluk
@PluginIO
Feb 22 16:42

Even simplifying to:

var s: Sprite = new Sprite();
trace(s.transform.colorTransform);
trace(s.transform.concatenatedColorTransform);
trace(s.transform.concatenatedMatrix);
trace(s.transform.matrix);

Gives the same results.

Wow.... what funky behaviour!! Adding the Sprite to the stage normalizes the values :worried:
Gary Paluk
@PluginIO
Feb 22 16:47
var s: Sprite = new Sprite();
addChild(s);

trace(s.transform.colorTransform);
trace(s.transform.concatenatedColorTransform);
trace(s.transform.concatenatedMatrix);
trace(s.transform.matrix);

//(redMultiplier=1, greenMultiplier=1, blueMultiplier=1, alphaMultiplier=1, redOffset=0, greenOffset=0, blueOffset=0, alphaOffset=0)
//(redMultiplier=1, greenMultiplier=1, blueMultiplier=1, alphaMultiplier=1, redOffset=0, greenOffset=0, blueOffset=0, alphaOffset=0)
//(a=1, b=0, c=0, d=1, tx=0, ty=0)
//(a=1, b=0, c=0, d=1, tx=0, ty=0)