TV Color Setting
sonex293
Posts: 9
I'm trying to set the four colors for every tile to Black (02), Green (18), Yellow (AE), and Red (58).
I'm using the following code statement
All colors seem ok except for Color(1) (i.e. green). The following code examples generate a psychedelic color. The top of the text starts out blue and ends up green. The arc starts out blue, goes through ping and ends up red. If I set the colors to Red or Yellow it is fine. Any ideas?
Just got my shipping notice on my Hydra book. Looking forward to getting it!
--
Michael
I'm using the following code statement
'init colors repeat i from 0 to 63 colors[i] := $00001010 * (i+4) & $F + $58AE1802[/i]
All colors seem ok except for Color(1) (i.e. green). The following code examples generate a psychedelic color. The top of the text starts out blue and ends up green. The arc starts out blue, goes through ping and ends up red. If I set the colors to Red or Yellow it is fine. Any ideas?
gr.textmode(3,3,6,5) gr.colorwidth(1,4) gr.text(-60,-50,@numchr) 'Arc gr.colorwidth(1,2) gr.arc (0,0,90,90,$0100,$100,5,2)
Just got my shipping notice on my Hydra book. Looking forward to getting it!
--
Michael
Comments
andre'
colors := $00001010 * (i+4) & $F + $58AE1802
Try this:
colors := $00001010 * (i+4) & $F + $58AE1802
That will put the value calculated into each element of the colors[noparse]/noparse array.
I guess I'm a little dense this morning....need more coffee, but I don't see a difference in my code and what you typed.
--
Michael
I can't get the right code to post!
Right after colors, put first '[noparse][[/noparse]', then your index 'i', then ']', followed by a space, then the remainder of the code shown.
Bizzare.
Perhaps your posting has the same problem?
Post Edited (potatohead) : 11/21/2006 2:32:30 PM GMT
when placing code into the forums try using the code markers (i.e. "[noparse][[/noparse]"code"]" before and "[noparse][[/noparse]"/code"]" after....minus the quotes)
I'll give that a try this evening.
--
Michael
edit:
Looks like I had to put spaces between the bracket and the i, otherwise it would get striped. You would hope the forum code would allow what ever was between the start code and end code markers. Oh well.
Post Edited (sonex293) : 11/21/2006 3:24:19 PM GMT
My guess is that the BBS is interpreting the bracket i bracket as the HTML for italics on. I would think that using the code block markers should take care of this.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Truly Understand the Fundamentals and the Path will be so much easier...
Sometimes the simplest is the best way to accomplish something.
--
Michael
www.youtube.com/watch?v=ryAa6y5hCog
--
Michael