• Runtimes
  • Flutter Runtime - Overbright Slot Color

Hello!

Just wondering if I can reliably set the RGB color of a slot with values greater than 1, thereby making those values higher (and therefore brighter) ... On mobile devices with Flutter?

I can do it on the web, but I want to know if it's reliable to do so on mobile devices?

Thank you!

PB

Related Discussions
...

In Spine, slot colors are typically set using RGBA values where each component ranges from 0 to 1. Setting values greater than 1 is not standard and may not be reliably supported across different platforms, including mobile devices using Flutter. While it might work on the web, mobile platforms could handle color values differently, potentially leading to inconsistent results. It's generally recommended to stick to the 0 to 1 range for color values to ensure consistent behavior across all platforms.

Okay, outside of duplicating a slot and setting the blend mode to Additive, is there a technique to lighten slot colours in runtime?

My game is a costume changing game and there are many costumes and accessories.

I want these to glow when the player is selecting them.

Managing all of these extra white textures that serve to only sit on top as layers is proving to be quite cumbersome.

I'm just wondering, would a better idea be to run the output JSON and Atlas through say a PHP script that parsed them, duplicated the slots, (updated the skins), duplicated the PNGs (made them all white with alpha and saved them as a compressed PNG) and then updated the atlas to point to the new texture files (without having to change the UV)

Is this a feasible approach?

Would save the headache of managing all of these white versions manually.

Seems odd to have to do this way though, hence why I think just having a way to brighten and color slots would be far superior.