The Ultimate Site of Worms Armageddon

Worms: Armageddon => General discussion => Topic started by: Woshee on June 08, 2017, 11:55 PM

Title: How To Still Use The Color Black Without it Disappearing
Post by: Woshee on June 08, 2017, 11:55 PM
I need to know that way i can use the color black in Official Doodle Worms Maps.
Title: Re: How To Still Use The Color Black Without it Disappearing
Post by: XanKriegor on June 09, 2017, 04:19 AM
Use 1.1.1 as the black. Or 8.8.8 if indexation is not done yet.
Title: Re: How To Still Use The Color Black Without it Disappearing
Post by: Woshee on June 09, 2017, 10:08 PM
K But i have photoshop... and i couldn't understand what those numbers mean.
Title: Re: How To Still Use The Color Black Without it Disappearing
Post by: HHC on June 09, 2017, 10:59 PM
It means you pick a colour really really close to black, but not actually pitchblack.
Title: Re: How To Still Use The Color Black Without it Disappearing
Post by: Triad on June 10, 2017, 10:41 AM
K But i have photoshop... and i couldn't understand what those numbers mean.
Those are RGB values of the color. R:0 G:0 B:0 is transparent black. Anything other than that, such as R:1 G:1 B:1, is not transparent.

Just double click the color to set RGB values.
Title: Re: How To Still Use The Color Black Without it Disappearing
Post by: XanKriegor on June 10, 2017, 11:21 AM
Photoshop is overkill for worms maps imho. Try something more simple, like PaintNET, PaintShopPro, and more.

Also, i have seen "PitchBlacK" at AG  :)
Title: Re: How To Still Use The Color Black Without it Disappearing
Post by: WTF-8 on June 10, 2017, 11:30 AM
Also, i have seen "PitchBlacK" at AG  :)
if he truly was pitch black, you would NOT see him as that's 100% transparency
Title: Re: How To Still Use The Color Black Without it Disappearing
Post by: XanKriegor on June 10, 2017, 11:48 AM
True. He is a poser then.
Title: Re: How To Still Use The Color Black Without it Disappearing
Post by: STRGRN on June 10, 2017, 03:10 PM
Photoshop is overkill for worms maps imho. Try something more simple, like PaintNET, PaintShopPro, and more.

gimp 2 is also halfway decent
Title: Re: How To Still Use The Color Black Without it Disappearing
Post by: Dr Abegod on June 10, 2017, 06:44 PM
Photoshop is overkill for worms maps imho.
Not if youre a pro
Title: Re: How To Still Use The Color Black Without it Disappearing
Post by: XanKriegor on June 11, 2017, 03:29 AM
Ofk. But OP definitely should start from something not that complex.
Title: Re: How To Still Use The Color Black Without it Disappearing
Post by: Woshee on June 11, 2017, 04:31 AM
I use it to Save it because i use .png and photoshop is the usual thing i use.
Title: Re: How To Still Use The Color Black Without it Disappearing
Post by: XanKriegor on June 11, 2017, 04:51 AM
Can you yse Curves tool?
Title: Re: How To Still Use The Color Black Without it Disappearing
Post by: Woshee on June 11, 2017, 05:33 AM
No I usually use brush and copy paste sometimes.
Title: Re: How To Still Use The Color Black Without it Disappearing
Post by: XanKriegor on June 11, 2017, 06:47 AM
In such cases:

[attachment=1]

This curve might be applied:

[attachment=2]

7.7.7 and darker become 8.8.8. Then you use 0.0.0 to fill all areas you want to be transparent. It does not make a problem usually, 1 click is enough. And this wont be fooked up after indexation.
Title: Re: How To Still Use The Color Black Without it Disappearing
Post by: XanKriegor on January 22, 2018, 06:23 PM
Today i accidently discovered that pitchblack can actually be presented on your maps.

[attachment=1]

It can be 0.0.0.; just place it somewhere else than #0 in the palette.

[attachment=2]
Title: Re: How To Still Use The Color Black Without it Disappearing
Post by: STRGRN on January 22, 2018, 08:06 PM
Photoshop is overkill for worms maps imho. Try something more simple, like PaintNET, PaintShopPro, and more.

I can personally recommend gimp 2 (it's free and open source)
Title: Re: How To Still Use The Color Black Without it Disappearing
Post by: StepS on January 23, 2018, 01:50 PM
You can use non-transparent black as XanKriegor noted above. For the game, it's the color position in the palette that matters.
You can have two 0,0,0 blacks in the palette, however most image editing programs will take the index of the first occurrence of the color, which will be always #0. Therefore you need to choose any color other than black for the position #0 that you don't use on the same map for anything else. That will be the transparent color. Once you're done, save the map, then open your PNG in TweakPNG or a hex-editor to edit the palette cell #0 to black (0,0,0). Make sure that this only changes the palette table and not any part of the image data. Now the 0th black will be used for transparent areas, while any other black you have put in the palette will be used for solid areas. Note that if you later open the map for editing again, and save it, the distinction between blacks will be lost. So you best keep two copies of the map to avoid having to perform an undo operation on the cell #0.

Note that if you're making 32-bit Project X maps, things are drastically different. For those maps, PX looks at how deep the color is. 0,0,0 is fully transparent, although things like dark reddish blacks will have two states at once: being non-solid (intangible) and non-transparent at the same time. The exact threshold of color intensity has not been measured, also it may not have been intended and thus a bug in PX. PyroMan has used this technique to create maps with custom background pictures and texts.