PAPER and INK commands
-
- 2nd Star Corporal
- Posts: 29
- Joined: Tue Jun 05, 2007 1:45 am
- Location: Oregon, United States
- Contact:
PAPER and INK commands
Basically, what are they and how do they work? Is PAPER the background color and INK the text color? How would I change the colors of these? I am new to BASIC in Oric, needless to say.
The two commands PAPER and INK control the colours of the paper and ink
Both take a parameter of 0 to 7 with the colours corresponding thus:
0 - black
1 - red
2 - green
3 - yellow
4 - blue
5 - magenta
6 - cyan
7 - white
In text mode, these commands will change all attributes in screen. I'm afraid it's been a while since I've done much coding on the Oric and I cannot remember the impact in Lores 0 or Lores 1. I believe Hires is the same as text mode regarding the colours.
So...in Text mode the following would give you yellow text on a blue screen:
INK 3: PAPER 4
Both take a parameter of 0 to 7 with the colours corresponding thus:
0 - black
1 - red
2 - green
3 - yellow
4 - blue
5 - magenta
6 - cyan
7 - white
In text mode, these commands will change all attributes in screen. I'm afraid it's been a while since I've done much coding on the Oric and I cannot remember the impact in Lores 0 or Lores 1. I believe Hires is the same as text mode regarding the colours.
So...in Text mode the following would give you yellow text on a blue screen:
INK 3: PAPER 4
Two know more about colors on the Oric, I can advise you to read this document:
http://www.defence-force.org/download/c ... nglish.txt
After reading it, you should understand easily that PAPER just set the value "16+color" in column 0, and INK set the value "color" in column 1.
http://www.defence-force.org/download/c ... nglish.txt
After reading it, you should understand easily that PAPER just set the value "16+color" in column 0, and INK set the value "color" in column 1.