Skip to content

"Variable Story Styling": Harlowe (v2.0)#

Summary#

"Variable Story Styling" demonstrates how to combine the (background:) and (color:) macros as storied in a variable. Combined with the (enchant:) macro, the named hook ?Page is used to select the entire page for the application of the background and color changes in each passage.

Example#

Download

Twee Code#

:: StoryTitle
Variable Story Styling in Harlowe

:: Start
(set: $storyStyle to (background: white) + (color: green) )
(enchant: ?Page, $storyStyle)
This text is green on a white background.
[[Next Passage]]

:: Next Passage
(set: $storyStyle to (background: black) + (color: white) )
(enchant: ?Page, $storyStyle)
This text is white on a black background.

Twee Download