Cores em ARGB

Posts 1–15 of 47 · Page 1 of 4
Cores em ARGB
Cores ARGB
Code:
CONST D3DCOLOR Red      = D3DCOLOR_ARGB(255, 255, 000, 000);
CONST D3DCOLOR Green    = D3DCOLOR_ARGB(255, 127, 255, 000);
CONST D3DCOLOR Orange   = D3DCOLOR_ARGB(255, 255, 140, 000);
CONST D3DCOLOR Blue     = D3DCOLOR_ARGB(255, 000, 000, 255);
CONST D3DCOLOR Yellow   = D3DCOLOR_ARGB(255, 255, 255,  51);
CONST D3DCOLOR Black    = D3DCOLOR_ARGB(255, 000, 000, 000);
CONST D3DCOLOR Grey     = D3DCOLOR_ARGB(255, 112, 112, 112);
CONST D3DCOLOR Gold     = D3DCOLOR_ARGB(255, 255, 215, 000);
CONST D3DCOLOR Pink     = D3DCOLOR_ARGB(255, 255, 192, 203);
CONST D3DCOLOR Purple   = D3DCOLOR_ARGB(255, 128, 000, 128);
CONST D3DCOLOR White    = D3DCOLOR_ARGB(255, 255, 255, 249);
CONST D3DCOLOR Cyan     = D3DCOLOR_ARGB(255, 000, 255, 255);
CONST D3DCOLOR Magenta  = D3DCOLOR_ARGB(255, 255, 000, 255);


Em Transparente...

Primeiro , se você souber algo , pegue o Negocinho do Alessandro10

Code:
void Ale_BoxTrans( int x, int y, int w, int h, D3DCOLOR yourcolor, IDirect3DDevice9* pDevice )
{
const DWORD D3D_FVF = D3DFVF_XYZRHW | D3DFVF_DIFFUSE;
struct Vertex
{
float x,y,z,ht;
DWORD yourcolor;
}

V[4] =
{
{(float)x,(float)(y+h), 0.0f, 0.0f, yourcolor},
{(float)x,(float)y, 0.0f, 0.0f, yourcolor},
{(float)(x+w),(float)(y+h), 0.0f, 0.0f, yourcolor},
{(float)(x+w),(float)y, 0.0f, 0.0f, yourcolor}
};
pDevice->SetRenderState( D3DRS_ALPHABLENDENABLE, TRUE );
pDevice->SetRenderState( D3DRS_DESTBLEND, D3DBLEND_INVSRCALPHA );
pDevice->SetRenderState( D3DRS_ZENABLE, D3DZB_FALSE );
pDevice->SetRenderState( D3DRS_FOGENABLE, false );

pDevice->SetFVF(D3D_FVF);
pDevice->SetTexture(0, NULL);
pDevice->DrawPrimitiveUP(D3DPT_TRIANGLESTRIP,2,V,sizeof(Vertex));

}
tabom

Cores EM ARGB Transparentes.
Code:
CONST D3DCOLOR TBlack    = D3DCOLOR_ARGB(100, 000, 000, 000);
CONST D3DCOLOR TRed      = D3DCOLOR_ARGB(100, 255, 000, 000);
CONST D3DCOLOR TGreen    = D3DCOLOR_ARGB(100, 127, 255, 000);
CONST D3DCOLOR TOrange   = D3DCOLOR_ARGB(100, 255, 140, 000);
CONST D3DCOLOR TBlue     = D3DCOLOR_ARGB(100, 000, 000, 255);
CONST D3DCOLOR TYellow   = D3DCOLOR_ARGB(100, 255, 255,  51);
CONST D3DCOLOR TGrey     = D3DCOLOR_ARGB(100, 112, 112, 112);
CONST D3DCOLOR TGold     = D3DCOLOR_ARGB(100, 255, 215, 000);
CONST D3DCOLOR TPink     = D3DCOLOR_ARGB(100, 255, 192, 203);
CONST D3DCOLOR TPurple   = D3DCOLOR_ARGB(100, 128, 000, 128);
CONST D3DCOLOR TWhite    = D3DCOLOR_ARGB(100, 255, 255, 249);
CONST D3DCOLOR TCyan     = D3DCOLOR_ARGB(100, 000, 255, 255);
CONST D3DCOLOR TMagenta  = D3DCOLOR_ARGB(100, 255, 000, 255);

para Transparente Deixe
T[Cor que você quer]
Para normal deixe
[Cor que você quer~].


é isso ae..
Creditos
we11


Eu , ja deviam saber ma seu não , entãot o postando apra quem não sabe , lol
@Alessandro10
pelo código em Transparente.


a maioria em tranparente foram testado;
Que dice que tenque coloca a letra "T" na frente da cor pra funciona ?
Não tem nada a ver se você quiser colocar o nome da cor como "Buceta" você poem, tem nada a ve
Quote Originally Posted by S0aD View Post
Que dice que tenque coloca a letra "T" na frente da cor pra funciona ?
Não tem nada a ver se você quiser colocar o nome da cor como "Buceta" você poem, tem nada a ve
eeeu sei mané , eu coloquei , porque tem vários C&P
tendeu?
ai quem copia vai copiar com letra "T" na frente (:
Preto
Code:
CONST D3DCOLOR Black    = D3DCOLOR_ARGB(255, 000, 000, 000);
Abaixo do 255 ja vai ficando mais Trans..........

Code:
CONST D3DCOLOR Black    = D3DCOLOR_ARGB(100, 000, 000, 000);
Code:
CONST D3DCOLOR Black    = D3DCOLOR_ARGB(70, 000, 000, 000);
Quote Originally Posted by Alessandro10 View Post
Preto
Code:
CONST D3DCOLOR Black    = D3DCOLOR_ARGB(255, 000, 000, 000);
Abaixo do 255 ja vai ficando mais Trans..........

Code:
CONST D3DCOLOR Black    = D3DCOLOR_ARGB(100, 000, 000, 000);
Code:
CONST D3DCOLOR Black    = D3DCOLOR_ARGB(70, 000, 000, 000);


to ligado , mas você coloco 100 anquele tópico , fico legal com 100 então coloquei 100 em todos '
Alessandro só falta soltar sua base '-'
Ta soltando tudo aqui na MPGH , nem moderadores na Web lixo tem mais geral vindo pra k.
Quote Originally Posted by Alessandro10 View Post
Tive uma aula hj a tarde, falando disso aew, que conhecimento é igual mulher bonita, tem que ser Mostrado!
haha , entende o porque ? x.x'
Que Negocinho Do Alessandro10 ?
Quote Originally Posted by ViniciusD7 View Post
Que Negocinho Do Alessandro10 ?
KKKKK
Eu ri disso ai tambem, que negocinho ein Xpeeh ? ? ? Safadenho
Quote Originally Posted by ViniciusD7 View Post
Que Negocinho Do Alessandro10 ?
está logo Abaixo do que eu Falei x.x'


Eu disse do Codigo gente :/'


@ edit


porque minha atividade não é no Brasil ? D:'
eu só fico aqui x.x'
@Strikex Vá em Customize Profile -> Edit Your Details -> Flag -> Coloque BR
Quote Originally Posted by Alessandro10 View Post
@Strikex Vá em Customize Profile -> Edit Your Details -> Flag -> Coloque BR




Thanks man (:
Mas Que Raiva Nunka Consigo Deixar meu Menu Transparente...!!
Bom Troque a funão DrawBox por essa e faça oque eu falei o tópico
éssa aqi só tem um pequeno erro e se você não descobrir desista...
Code:
void awBox( LPDIRECT3DDEVICE9 pDevice, INT x, INT y, INT h, INT w, D3DCOLOR Border, D3DCOLOR yourcolor )
{
	DrawRect(pDevice, x, y, h, 1, Border);
	DrawRect(pDevice, x + w, y, h, 1, Border);
	DrawRect(pDevice, x, y, 1, w, Border);
	DrawRect(pDevice, x, y + h, 1, w + 1, Border);
	DrawRect(pDevice, x + 2, y + 2, h - 4, 2, Border);
	DrawRect(pDevice, x + 2, y + 2, 2, w - 4, Border);
	DrawRect(pDevice, x + w - 4, y + 2, h - 4, 2, Border);
	DrawRect(pDevice, x + 2, y + h - 4, 2, w - 4, Border);
const DWORD D3D_FVF = D3DFVF_XYZRHW | D3DFVF_DIFFUSE;
struct Vertex
{
float x,y,z,ht;
DWORD yourcolor;
}

V[4] =
{
{(float)x,(float)(y+h), 0.0f, 0.0f, yourcolor},
{(float)x,(float)y, 0.0f, 0.0f, yourcolor},
{(float)(x+w),(float)(y+h), 0.0f, 0.0f, yourcolor},
{(float)(x+w),(float)y, 0.0f, 0.0f, yourcolor}
};
pDevice->SetRenderState( D3DRS_ALPHABLENDENABLE, TRUE );
pDevice->SetRenderState( D3DRS_DESTBLEND, D3DBLEND_INVSRCALPHA );
pDevice->SetRenderState( D3DRS_ZENABLE, D3DZB_FALSE );
pDevice->SetRenderState( D3DRS_FOGENABLE, false );

pDevice->SetFVF(D3D_FVF);
pDevice->SetTexture(0, NULL);
pDevice->DrawPrimitiveUP(D3DPT_TRIANGLESTRIP,2,V,sizeof(Vertex));

}
Não precisa trocar o DrawBox por nada
É só você ir em "Menu.h" e Copiar e Colar o Código citado acima
Simples assim
Posts 1–15 of 47 · Page 1 of 4
This thread is closed for replies.

Tags for this Thread

None

Need help?