User Tools

Site Tools


harlowe:text-colour

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

harlowe:text-colour [2017/10/09 20:39]
harlowe:text-colour [2017/10/09 20:39] (current)
Line 1: Line 1:
 +**(text-colour:​ // [[harlowe:​String|String]] or [[harlowe:​Colour|colour]]//​) -> //​[[harlowe:​Changer|Changer]]//​**
  
 +Also known as: [[harlowe:​colour|(colour:​)]],​ [[harlowe:​text-color|(text-color:​)]],​ [[harlowe:​color|(color:​)]]
 +
 +This styling [[harlowe:​Command|Command]] changes the [[harlowe:​colour|colour]] used by the text in the attached hook.
 +You can supply either a [[harlowe:​string|string]] with a CSS-style colour (a colour name or
 +RGB [[harlowe:​number|number]] supported by CSS), or a built-in colour object.
 +
 +=== Example usage: ===
 +
 +''​%%(colour:​ red + white)[Pink]%%''​ combines the built-in red and white colours to make pink.
 +''​%%(colour:​ "#​696969"​)[Gray]%%''​ uses a CSS-style colour to style the text gray.
 +
 +=== Details: ===
 +
 +This macro only affects the text colour. To change the text background, call upon
 +the [[harlowe:​background|(background:​)]] macro.
 +
 +=== See also: ===
 +
 +[[harlowe:​background|(background:​)]]
harlowe/text-colour.txt ยท Last modified: 2017/10/09 20:39 (external edit)