Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Advanced 2D text fading

Author
Message
Giku_
14
Years of Service
User Offline
Joined: 14th Jan 2012
Location: The World
Posted: 27th Feb 2012 13:57
Is there a way to do this?

I know that all the commands of this plugin support alpha transparency, but the only way i managed to do this is through hex color. If i need to INC or DEC an alpha value, how can i do it using hex color? Is there another command to retrieve and edit alpha transparency? Thanks in advance.
Diggsey
20
Years of Service
User Offline
Joined: 24th Apr 2006
Location: On this web page.
Posted: 27th Feb 2012 14:57
When you specify a colour using hex, all you are doing is passing in a number. You can generate that number in other ways, for example:



[b]
Millenium7
21
Years of Service
User Offline
Joined: 13th Dec 2004
Location:
Posted: 27th Feb 2012 16:59 Edited at: 27th Feb 2012 17:06
ummm.... it's not documented but the RGB command is also an ARGB command
i.e. rgb(255,255,255,255)

So to adjust the alpha of a2text you use


example code
Diggsey
20
Years of Service
User Offline
Joined: 24th Apr 2006
Location: On this web page.
Posted: 27th Feb 2012 17:03
@Millenium7
That's only if you have the matrix1utils plugins installed, that command isn't part of native DBPro.

[b]
Millenium7
21
Years of Service
User Offline
Joined: 13th Dec 2004
Location:
Posted: 27th Feb 2012 17:08
hmmm ok didn't know that, bigger question then
why would anybody who's beyond printing "hello world", NOT have matrix1util's installed?
Sergey K
22
Years of Service
User Offline
Joined: 4th Jan 2004
Location:
Posted: 27th Feb 2012 17:28
there is a d3D text plugin, it has an alpha channel for fading too.
i recomend you to use it.

more 3d models .x/.obj and more foramts here:
[href]https://www.turbosquid.com/Search/Index.cfm?keyword=gogetax1&x=0&y=0[href]
Giku_
14
Years of Service
User Offline
Joined: 14th Jan 2012
Location: The World
Posted: 27th Feb 2012 17:57
So installing that matrix1util's i could use ARGB() with Advanced 2D too?
Diggsey
20
Years of Service
User Offline
Joined: 24th Apr 2006
Location: On this web page.
Posted: 27th Feb 2012 18:08
Yes, argb() will work with Advanced2D as well.

[b]

Login to post a reply

Server time is: 2026-07-09 15:24:52
Your offset time is: 2026-07-09 15:24:52