Computer Science Canada

256 colors

Author:  PHP God [ Mon Jun 16, 2003 10:38 am ]
Post subject:  256 colors

I want to take turing further, And i'm wondering if it's possible to load the 256 color pallete. If I did how would I specify color for say a line.

Author:  Homer_simpson [ Mon Jun 16, 2003 11:04 am ]
Post subject: 

if your using 4.XX version of turing you can use :

code:
RGB.AddColor (redComp, greenComp, blueComp : real) : int

RGB.GetColor (colorNumber : int,
  var redComp, greenComp, blueComp : real)

RGB.SetColor (colorNumber: int,
  redComp, greenComp, blueComp : real)

those 3 commands add and set colors using RGB(red green blue)

Author:  PaddyLong [ Mon Jun 16, 2003 3:43 pm ]
Post subject: 

the RGB commands are also available in 3

Author:  Andy [ Mon Jun 16, 2003 4:42 pm ]
Post subject: 

and turing has 256 colors anyways

Author:  PHP God [ Fri Jun 20, 2003 10:34 am ]
Post subject: 

whats the command for 3, it doesn't work the way homer said.

Author:  Homer_simpson [ Fri Jun 20, 2003 1:16 pm ]
Post subject: 

i dont think that 3 has them... y dont u just go and download the newer version?

Author:  PaddyLong [ Fri Jun 20, 2003 3:10 pm ]
Post subject: 

yes it does... well my version 3.1.1C does any way ... just type RGB in the editor and press f9 on it

Author:  nate [ Sun Jun 22, 2003 5:29 pm ]
Post subject: 

r u trying 2 make a paint program?

Author:  PHP God [ Mon Jun 23, 2003 7:57 am ]
Post subject: 

I'd download 4 but I'm at school. I did an F9, it was useless, here, try to make sense of it.

code:

RGB    OOT predefined unit    OOT Only

Description:

        This unit contains the OOT predefined constants for the basic
  colors and the subprograms to change the color palette.
        All subprograms in the RGB unit are exported qualified (and thus
  must be prefaced with "RGB."). All the color constants are exported
  unqualified and thus do not need the RGB prefix.
        Entry Points    black, blue, green, cyan, red, magenta,
      color names constants
        purple, brown, white, gray, grey, brightblue,     (exported
  unqualified)
        brightgreen, brightcyan, brightred,
        brightmagenta, brightpurple, yellow,
        brightwhite, darkgray, darkgrey, colorfg,
        colourfg, colorbg, colourbg
        GetColor    Gets the current red, green and blue values of a
  specified color number.
        GetColour    Gets the current red, green and blue values of a
  specified color number.
        SetColor    Sets the red, green and blue values of a specified
  color number.
        SetColour    Sets the red, green and blue values of a specified
  color number.
        AddColor    Creates a new color number with a specified red,
  green and blue value.
        AddColour    Creates a new color number with a specified red,
  green and blue value.

See also:

        OOT predefined unit RGB in Chapter Five.



Author:  Andy [ Mon Jun 23, 2003 3:20 pm ]
Post subject: 

can't u click on each sub title?

Author:  PaddyLong [ Tue Jun 24, 2003 3:10 pm ]
Post subject: 

you can click on them, but even still... just type the one you think would be useful based on the description it gives and then press f9 on that

Author:  Andy [ Wed Jun 25, 2003 11:35 am ]
Post subject: 

does that work on 3 as well? i thought that only works on 4

Author:  PaddyLong [ Wed Jun 25, 2003 12:28 pm ]
Post subject: 

yes it works in 3

Author:  Andy [ Wed Jun 25, 2003 1:40 pm ]
Post subject: 

PHP, type RGB. whatever you found inthe help menue and press F9

Author:  PHP God [ Wed Jun 25, 2003 8:39 pm ]
Post subject: 

I'll download 4 tommorow when my PC gets back from the shop.


: