View Single Post
06-02-11, 09:04 PM   #329
Unkn
Premium Member
 
Unkn's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2008
Posts: 258
Now I am curious if I can apply a gradient to a texture. Testing... I'll get back to you.


Edit:
Okay tested... And here is the easiest way I came up with. I made a gradient texture and added some chop to it.... ie used one of my random brushed in gimp and made the choppy pattern on it.

Code:
{ name = "tester", -- test
	anchor_to = "CENTER", anchor_to = "CENTER",
	y_off = 0, height = "20%", width = "40%", level = 0,
	tex_file = "testtexture.tga",
    bg_color = {0,0,1}, bg_alpha = 0.45, -- was playing with different alphas for the screenshots
},
{ name = "tester2", -- test
	anchor_to = "CENTER", anchor_to = "CENTER",
	y_off = 0, height = "20%", width = "40%", level = 0,
	bg_color = {0,0,0}, bg_alpha = 0,
	border = "SOLID", border_color = {0,0,0},
},
Same effect, half the work? And you could easily just put the border on the main frame. I just kept it apart so I wouldn't mistakenly delete any of it

I've got the texture available if you'd like to use it, its in the zip file.
Attached Thumbnails
Click image for larger version

Name:	fakedgradient.jpg
Views:	919
Size:	37.7 KB
ID:	6222  Click image for larger version

Name:	fakedgradient2.jpg
Views:	907
Size:	44.2 KB
ID:	6223  Click image for larger version

Name:	gradientfaked2.jpg
Views:	907
Size:	45.8 KB
ID:	6224  
Attached Files
File Type: zip testertexture.zip (186.9 KB, 876 views)
__________________
"I'm very feminine. And I'll beat the crap out of ANYONE who disagrees!"

Last edited by Unkn : 06-02-11 at 09:36 PM.
  Reply With Quote