TextInput.backgroundColor -1 is not transparent

Using ZIM 17, setting the backgroundColor param to -1 produces a black background

image

        const nameTf = new zim.TextInput({
            text: this.player.name,
            size: this.h * .175,
            font: "fixed",
            color: "#fff",
            backgroundColor: -1,
            borderColor: -1,
            shadowColor: -1,
            width: maxSide * 3,
            height: nameTfH + 4,
            padding: 2,
        });

How do I get a transparent background?

You can use the clear color as in... backgroundColor:clear

The -1 is only used in shadowColor or shadowBlur - to turn off shadow.

1 Like

OK thanks! Docs currently say -1

Not... anymore.... :wink:

1 Like