Mirage Source http://www.miragesource.net/forums/ |
|
Choosing Transparency color? http://www.miragesource.net/forums/viewtopic.php?f=210&t=928 |
Page 1 of 1 |
Author: | Leighland [ Sat Dec 23, 2006 2:23 pm ] |
Post subject: | Choosing Transparency color? |
I think I might just be blind... or something... I'd like to knwo how I can choose the transparency color for my maps. IE: Instead of black, pink? |
Author: | Dragoons Master [ Sat Dec 23, 2006 3:39 pm ] |
Post subject: | |
Sub InitSurfaces: find this: Code: ' Set the key for masks
Key.low = 0 Key.high = 0 I'm not a 100% of how it works, I never realy changed it but it's a range, probly it vbcollors, so type vb+Ctrl+Space and try to change from collor to collor, I'm not a 100% sure it that will work. |
Author: | Lea [ Sat Dec 23, 2006 5:16 pm ] |
Post subject: | |
You can use the RGB function to find the long value for a color. RGB(red, green, blue) where red green and blue are the standard componets of a color 0-255 So for black, you could use RGB(0,0,0) White = RGB(255, 255, 255) Blue = RGB(0,0,255) Magenta = ? Just put a RGB statement there. |
Author: | Dragoons Master [ Sat Dec 23, 2006 8:27 pm ] |
Post subject: | |
Magenta should be RGB(255, 0, 255) I'm not a 100% sufe if that is magenta, my english sux xD |
Author: | Leighland [ Sat Dec 23, 2006 9:17 pm ] |
Post subject: | |
Ah thanks very much, I thought it had something to do with that but wasn't sure how it worked... |
Author: | halla [ Sat Dec 23, 2006 9:22 pm ] |
Post subject: | |
' Set the key for masks With Key .low = RGB(255, 0, 255) .high = RGB(255, 0, 255) End With Yeah just that and whatever color. Thats pink I beleive... |
Author: | Leighland [ Sat Dec 23, 2006 9:36 pm ] |
Post subject: | |
Hmm maybe someone can go into further detail on this? I am using RGB(186,133,168) and haven't been able to get it to work. I tried it as key.low, key.high and on both at the same time, nothing happens. Any suggestions? |
Author: | Dragoons Master [ Sat Dec 23, 2006 9:53 pm ] |
Post subject: | |
This uses like a range, but normaly, since we use only one transparency color, Low and High should be the same. and it will make every RGB(186,133,168) transparent. So your tiles should have this collor as the background. |
Author: | Leighland [ Sat Dec 23, 2006 10:02 pm ] |
Post subject: | |
They do, for some reason or another it didn't work though. However, found a solution on the old forums: http://ms.shannaracorp.com/backup-forum ... ID=632#632 |
Author: | Tony [ Sun Dec 24, 2006 12:33 am ] |
Post subject: | |
Just go in paint and look at the RGB :p. Thats one way to do it. :: Pando |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |