Jump to content

Color Palette Transparent?


Go to solution Solved by null54,

Recommended Posts

I remember discussing this some time back, but I can't apparently search mu owwn posts anymore, so I can't find it.

 

I made a palette, and all the colors are transparent.

 

THis is the palette: (for doing green eyes)

 

000000
020b0a
041713
06221d
082e26
0a3a30
0c453a
0e5143
105c4d
126856
147360
2c8170
438f80
5b9d90
72aba0
8ab9b0
a1c7bf
b9d5cf
d0e3df
e8f1ef
ffffff

 

How do I make this non-transparent?

 

Link to comment
Share on other sites

  • Solution
56 minutes ago, Marilynx said:

How do I make this non-transparent?

 

Add ff to the start of each color, e.g.:

 

ff000000
ff020b0a
ff041713
ff06221d
ff082e26
ff0a3a30
ff0c453a
ff0e5143
ff105c4d
ff126856
ff147360
ff2c8170
ff438f80
ff5b9d90
ff72aba0
ff8ab9b0
ffa1c7bf
ffb9d5cf
ffd0e3df
ffe8f1ef
ffffffff

 

The Paint.NET palette colors consist of 8 hexadecimal digits in ARGB format, the first 2 characters set the transparency for the color.

More details can be found in the comments at the top of the DefaultPdn.txt palette.

  • Upvote 1

PdnSig.png

Plugin Pack | PSFilterPdn | Content Aware Fill | G'MICPaint Shop Pro Filetype | RAW Filetype | WebP Filetype

The small increase in performance you get coding in C++ over C# is hardly enough to offset the headache of coding in the C++ language. ~BoltBait

 

Link to comment
Share on other sites

2 hours ago, null54 said:

 

Add ff to the start of each color, e.g.:

 

ff000000
ff020b0a
ff041713
ff06221d
ff082e26
ff0a3a30
ff0c453a
ff0e5143
ff105c4d
ff126856
ff147360
ff2c8170
ff438f80
ff5b9d90
ff72aba0
ff8ab9b0
ffa1c7bf
ffb9d5cf
ffd0e3df
ffe8f1ef
ffffffff

 

The Paint.NET palette colors consist of 8 hexadecimal digits in ARGB format, the first 2 characters set the transparency for the color.

More details can be found in the comments at the top of the DefaultPdn.txt palette.

 

Thank you. I remembered that there was SOMETHING which needed to be added to the hex but could not remember, for the life of me,  what it was. And could not find the earlier discussion. It now works perfectly.

 

Edited by Marilynx
spelling
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...