Skip to content
FREN

The flag

A banner and a frame in the flag's colour, which only show under a yellow, blue or red flag.

  • 12 min
  • no game needed
  • at the end: a layer that shows itself

A flag has to be seen without reading: the whole screen is outlined in its colour, a banner says which one and what it calls for. Start from your dash from chapter 9, or from its checkpoint. In the simulated telemetry, search for flag and type yellow: the yellow flag is out.

Step 1 / 4

The banner

A slanted rectangle: X 155, Y 34, W 544, H 54, the shape M 16 0 H 544 L 528 54 H 0 Z, #ffd400, named Flag banner. On it, T, YELLOW FLAG, Exo 2, 38, Black, italic, letter spacing 0.8, #0a0a0d, X 189, Y 38, named Flag title. Then T, NO OVERTAKING, Exo 2, 14, Bold, letter spacing 0.8, #0a0a0d, X 465, Y 62, named Flag note.

Step 2 / 4

The frame

A rectangle over the whole page, X 0, Y 0, W 854, H 480, #ffd400, named Flag frame. Its shape keeps a 10-pixel edge:

M 0 0 H 854 V 480 H 0 Z M 10 10 V 470 H 844 V 10 Z

The second rectangle, drawn the other way round, hollows out the first: only the edge is left.

Step 3 / 4

One Expression per flag

Next to the note’s node:

f = @flag_id ;
red = rgba(255, 72, 72) ;
blue = rgba(64, 150, 255) ;
$color = f == 6 ? red : f == 2 ? blue : rgba(255, 212, 0) ;
$ink = f == 1 ? rgba(10, 10, 13) : rgba(245, 245, 247) ;
$title = f == 6 ? "RED FLAG" : f == 2 ? "BLUE FLAG" : "YELLOW FLAG" ;
$note = f == 6 ? "SESSION STOPPED" : f == 2 ? "LET THE LEADERS BY" : "NO OVERTAKING"

flag_id numbers the flag: 1 yellow, 2 blue, 6 red. Six wires: title and note to the two texts’ value, ink to their color (black on yellow, white on blue and red), color to fillColor on the banner and on the frame.

Step 4 / 4

Put away, and only shown under a flag

Flag banner, Shift+click Flag frame, Ctrl+G, Flag. The group goes over everything else: it is the last layer.

It must only show under a flag. Next to its node, a second Expression:

f = @flag_id ;
$opacity = f == 1 || f == 2 || f == 6 ? 1 : 0

opacity to the group’s opacity. || means “or”: the group is opaque under one of the three flags, transparent otherwise.

Download first-dash-10.slxd: the dash at the end of this chapter, with no flag out.

The flag never shows. In the simulated telemetry, the flag is set by its name, flag (yellow, blue, red): flag_id is its number, worked out from it.

Layer Tool Shape or text X Y W × H Size Colour
Flag banner Rectangle M 16 0 H 544 L 528 54 H 0 Z 155 34 544 × 54 wired
Flag title Text wired to the Expression 189 38 38, Black, italic wired
Flag note Text wired to the Expression 465 62 14, Bold wired
Flag frame Rectangle the frame, 10 pixels 0 0 854 × 480 wired

Texts in Exo 2, letter spacing 0.8, Vertical on line, top.