Clipper 256 cores ???

Projeto [x]Harbour - Compilador de código aberto compatível com o Clipper.

Moderador: Moderadores

Avatar do usuário
JoséQuintas
Administrador
Administrador
Mensagens: 20267
Registrado em: 26 Fev 2007 11:59
Localização: São Paulo-SP

Clipper 256 cores ???

Mensagem por JoséQuintas »

Acabei caindo num texto do manual do Clipper
E não é que no Clipper tinha a opção de 256 cores.... modo gráfico... mas tinha...
<nColor> is a numeric value representing the display color. If this
parameter is missing, the last color specified in a call to a CA-Clipper
function is used. The value range is limited to the number of colors
available in the selected video mode. In 16-color modes, valid values
are between 0 and 15. In 256-color modes, valid values are between 0
and 255.
https://harbour.github.io/ng/c53g01c/ng5c311.html
José M. C. Quintas
Harbour 3.2, mingw, gtwvg mt, fivewin 25.04, multithread, dbfcdx, MySQL, ADOClass, PDFClass, SefazClass, (hwgui mt), (hmg3), (hmg extended), (oohg), PNotepad, ASP, stored procedure, stored function, Linux (Flagship/harbour 3.2)
"The world is full of kings and queens, who blind our eyes and steal our dreams Its Heaven and Hell"

https://github.com/JoseQuintas/
Avatar do usuário
Toledo
Administrador
Administrador
Mensagens: 3133
Registrado em: 22 Jul 2003 18:39
Localização: Araçatuba - SP
Contato:

Clipper 256 cores ???

Mensagem por Toledo »

Veja um exemplo em Harbour:

Código: Selecionar todos

// The example displays all 256 colors.

   PROCEDURE Main
      LOCAL nRow, nCol, nColor, cColor

      SetMode(26,80)

      nRow := 0
      nCol := 0

      FOR nColor := 0 TO 255
         cColor := NtoColor( nColor, .T. )

         @ nRow, nCol SAY PadC( cColor, 8 ) COLOR (cColor)

         IF ++nRow > 25
            nRow := 0
            nCol += 8
         ENDIF
      NEXT
   RETURN
Compilar: hbmk2 democores.prg -lhbct
Toledo - Clipper On Line
toledo@pctoledo.com.br
Harbour 3.2/MiniGui/HwGui
Faça uma doação para o fórum, clique neste link: http://www.pctoledo.com.br/doacao
Avatar do usuário
JoséQuintas
Administrador
Administrador
Mensagens: 20267
Registrado em: 26 Fev 2007 11:59
Localização: São Paulo-SP

Clipper 256 cores ???

Mensagem por JoséQuintas »

ok, 16 cores combinadas, frente e fundo, dá 256.
O número se refere ao conjunto frente + fundo, e não cores individuais.
José M. C. Quintas
Harbour 3.2, mingw, gtwvg mt, fivewin 25.04, multithread, dbfcdx, MySQL, ADOClass, PDFClass, SefazClass, (hwgui mt), (hmg3), (hmg extended), (oohg), PNotepad, ASP, stored procedure, stored function, Linux (Flagship/harbour 3.2)
"The world is full of kings and queens, who blind our eyes and steal our dreams Its Heaven and Hell"

https://github.com/JoseQuintas/
Responder