I don't know how to change the colour of text.

yeahprobablyh
22 Nov 2022, 02:51

I thought I found some code on a forum that would work. I tried it, and it worked. (Between brackets- <> font color:"red")
I tried to use it several more times, but it stopped working. Can you use hex codes for text on this platform? (ex. between brackets <> font color:"#FFFFFF") I also tried to use it several times on the same page to make text on the page multicoloured. I want to make a gamebook where all the characters' text is colour-coded and everybody has a specific hex code for their text, and a multicoloured header on each page. This is my first experience with coding and I thought this would be a lot easier. Is there an easy way for me to make text on the same line different colours?


mrangel
22 Nov 2022, 16:02

If you want to use HTML, you could either use the old-fashioned (obsolete) method that still works:

<font color="red">Your text goes here</font>
Note that's an equals sign, not a colon.

Or you could use standard CSS; which most browsers will turn your code into behind the scenes:
<span style="color: red">Your text here</span>

Or if this is in text that will be output by Quest, you can use the text processor (which will generate the code above):
{color:red:Your text here}

Can you use hex codes for text on this platform?

Yes. You can use codes like #AAEE77 in place of a colour name.
In the CSS version, you can also use colour functions, such as rgb(80, 80, 20), or rgba(80, 80, 20, 40) if you want a transparent colour. You also have the option of hsl, hsla, hwb, or lch colours in the same way, if you know how they work.


yeahprobablyh
22 Nov 2022, 22:22

Thanks so much! I really appreciate it. I'll try these right away.