Alpha Value in Hex Color Picker

I’m not sure if there is a setting I’m missing but I was wondering if it is possible to change the alpha values in the hex color picker with the string.

alpha_hex_color

The desired behavior is that a string like (#) a0a0a0a0 creates a color with all RGBA values 160.

Or that (#) a0a0a0ff creates a RGBA value of

desired values
  • red: 160
  • green: 160
  • blue: 160
  • alpha: 255
current behavior
  • red: 160
  • green: 160
  • blue: 255 :x:
  • alpha: 255

Currently using Aseprite v1.3.2 on MacOS 14.5.

1 Like

I think you’d have to change the C++ source code to do this:

For anyone interested, the really important thing I found in my tinkering was to use strtoul to get an unsigned long, not strtol.

I was looking at this because it’d also be possible to support parsing RGB565 (a 4 digit hex code) and RGB444 (a 3 digit hex code) if you had different clauses based on the string’s length instead of always padding it out to 6.