% append this in the prologue % /toggle {flag {/fc {0.85 0.65 0.55} D /pc {0.3 1 0.3} D /cc {1 1 1} D /sc {1 0 0} D} {/fc {1 0.5 0} D /pc {0 0 0} D /cc {1 1 0} D /sc {0 1 1} D} ifelse flag not /flag E D } BD % % replace this in the body after the rectangle fill % /fc {1 0.5 0} D /pc {0 0 0} D /cc {1 1 0} D /sc {0 1 1} D /flag true D 100 -20 0 {layer toggle} for