Página 1 de 1

Clipper 256 cores ???

Enviado: 28 Jul 2019 18:58
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

Clipper 256 cores ???

Enviado: 28 Jul 2019 20:23
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

Clipper 256 cores ???

Enviado: 29 Jul 2019 00:02
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.