256 colors
Author |
Message |
PHP God
|
Posted: 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
|
|
|
Homer_simpson
|
Posted: 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
|
Posted: Mon Jun 16, 2003 3:43 pm Post subject: (No subject) |
|
|
the RGB commands are also available in 3 |
|
|
|
|
|
Andy
|
Posted: Mon Jun 16, 2003 4:42 pm Post subject: (No subject) |
|
|
and turing has 256 colors anyways |
|
|
|
|
|
PHP God
|
Posted: 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
|
Posted: 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
|
Posted: 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
|
Posted: Sun Jun 22, 2003 5:29 pm Post subject: (No subject) |
|
|
r u trying 2 make a paint program? |
|
|
|
|
|
Sponsor Sponsor
|
|
|
PHP God
|
Posted: 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
|
Posted: Mon Jun 23, 2003 3:20 pm Post subject: (No subject) |
|
|
can't u click on each sub title? |
|
|
|
|
|
PaddyLong
|
Posted: 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
|
Posted: 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
|
Posted: Wed Jun 25, 2003 12:28 pm Post subject: (No subject) |
|
|
yes it works in 3 |
|
|
|
|
|
Andy
|
Posted: 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
|
Posted: Wed Jun 25, 2003 8:39 pm Post subject: (No subject) |
|
|
I'll download 4 tommorow when my PC gets back from the shop. |
|
|
|
|
|
|
|