Thread: Cores em ARGB

Page 1 of 4 123 ... LastLast
Results 1 to 15 of 47
  1. #1
    Strikex's Avatar
    Join Date
    Dec 2010
    Gender
    male
    Posts
    1,311
    Reputation
    9
    Thanks
    355
    My Mood
    Relaxed

    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;
    Last edited by Strikex; 03-03-2011 at 05:43 PM.

  2. The Following 4 Users Say Thank You to Strikex For This Useful Post:

    ..:Sasuke:.. (03-04-2011),NewCories (03-03-2011),picoruxo (04-10-2011),Stewie- (04-14-2011)

  3. #2
    S0aD's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Posts
    2,247
    Reputation
    5
    Thanks
    590
    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

  4. #3
    Strikex's Avatar
    Join Date
    Dec 2010
    Gender
    male
    Posts
    1,311
    Reputation
    9
    Thanks
    355
    My Mood
    Relaxed
    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 (:

  5. #4
    Alessandro10's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Location
    MPGH.NET
    Posts
    6,140
    Reputation
    215
    Thanks
    4,609
    My Mood
    Busy
    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);

  6. #5
    Strikex's Avatar
    Join Date
    Dec 2010
    Gender
    male
    Posts
    1,311
    Reputation
    9
    Thanks
    355
    My Mood
    Relaxed
    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 '

  7. #6
    NewCories's Avatar
    Join Date
    Mar 2011
    Gender
    male
    Posts
    121
    Reputation
    7
    Thanks
    12
    My Mood
    Brooding
    Alessandro só falta soltar sua base '-'
    Ta soltando tudo aqui na MPGH , nem moderadores na Web lixo tem mais geral vindo pra k.


    Turbulence Backup.

  8. The Following User Says Thank You to NewCories For This Useful Post:

    Nightmare (06-12-2011)

  9. #7
    Strikex's Avatar
    Join Date
    Dec 2010
    Gender
    male
    Posts
    1,311
    Reputation
    9
    Thanks
    355
    My Mood
    Relaxed
    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'

  10. #8
    ViniciusD7's Avatar
    Join Date
    Feb 2011
    Gender
    male
    Posts
    766
    Reputation
    10
    Thanks
    41
    My Mood
    Pensive
    Que Negocinho Do Alessandro10 ?

  11. #9
    S0aD's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Posts
    2,247
    Reputation
    5
    Thanks
    590
    Quote Originally Posted by ViniciusD7 View Post
    Que Negocinho Do Alessandro10 ?
    KKKKK
    Eu ri disso ai tambem, que negocinho ein Xpeeh ? ? ? Safadenho

  12. #10
    Strikex's Avatar
    Join Date
    Dec 2010
    Gender
    male
    Posts
    1,311
    Reputation
    9
    Thanks
    355
    My Mood
    Relaxed
    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'
    Last edited by Strikex; 03-03-2011 at 06:07 PM.

  13. #11
    Alessandro10's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Location
    MPGH.NET
    Posts
    6,140
    Reputation
    215
    Thanks
    4,609
    My Mood
    Busy
    @Xpeeh Vá em Customize Profile -> Edit Your Details -> Flag -> Coloque BR
    Last edited by Alessandro10; 03-03-2011 at 06:16 PM.

  14. The Following User Says Thank You to Alessandro10 For This Useful Post:

    Strikex (03-03-2011)

  15. #12
    Strikex's Avatar
    Join Date
    Dec 2010
    Gender
    male
    Posts
    1,311
    Reputation
    9
    Thanks
    355
    My Mood
    Relaxed
    Quote Originally Posted by Alessandro10 View Post
    @Xpeeh Vá em Customize Profile -> Edit Your Details -> Flag -> Coloque BR




    Thanks man (:

  16. #13
    ViniciusD7's Avatar
    Join Date
    Feb 2011
    Gender
    male
    Posts
    766
    Reputation
    10
    Thanks
    41
    My Mood
    Pensive
    Mas Que Raiva Nunka Consigo Deixar meu Menu Transparente...!!

  17. #14
    Strikex's Avatar
    Join Date
    Dec 2010
    Gender
    male
    Posts
    1,311
    Reputation
    9
    Thanks
    355
    My Mood
    Relaxed
    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));
    
    }

  18. The Following 3 Users Say Thank You to Strikex For This Useful Post:

    'Batata! (04-10-2011),NewCories (03-03-2011),ViniciusD7 (03-03-2011)

  19. #15
    S0aD's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Posts
    2,247
    Reputation
    5
    Thanks
    590
    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

  20. The Following User Says Thank You to S0aD For This Useful Post:

    ViniciusD7 (03-03-2011)

Page 1 of 4 123 ... LastLast