Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 256 colors
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
PHP God




PostPosted: 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.
Sponsor
Sponsor
Sponsor
sponsor
Homer_simpson




PostPosted: Mon Jun 16, 2003 11:04 am   Post subject: (No 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)
PaddyLong




PostPosted: Mon Jun 16, 2003 3:43 pm   Post subject: (No subject)

the RGB commands are also available in 3
Andy




PostPosted: Mon Jun 16, 2003 4:42 pm   Post subject: (No subject)

and turing has 256 colors anyways
PHP God




PostPosted: Fri Jun 20, 2003 10:34 am   Post subject: (No subject)

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




PostPosted: Fri Jun 20, 2003 1:16 pm   Post subject: (No subject)

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




PostPosted: Fri Jun 20, 2003 3:10 pm   Post subject: (No subject)

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




PostPosted: Sun Jun 22, 2003 5:29 pm   Post subject: (No subject)

r u trying 2 make a paint program?
PHP God




PostPosted: Mon Jun 23, 2003 7:57 am   Post subject: (No 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.


Andy




PostPosted: Mon Jun 23, 2003 3:20 pm   Post subject: (No subject)

can't u click on each sub title?
PaddyLong




PostPosted: Tue Jun 24, 2003 3:10 pm   Post subject: (No 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
Andy




PostPosted: Wed Jun 25, 2003 11:35 am   Post subject: (No subject)

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




PostPosted: Wed Jun 25, 2003 12:28 pm   Post subject: (No subject)

yes it works in 3
Andy




PostPosted: Wed Jun 25, 2003 1:40 pm   Post subject: (No subject)

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




PostPosted: Wed Jun 25, 2003 8:39 pm   Post subject: (No subject)

I'll download 4 tommorow when my PC gets back from the shop.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 15 Posts ]
Jump to:   


Style:  
Search: