Skip to content

Commit 274b022

Browse files
committed
tidy
1 parent d12b78a commit 274b022

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

processing_app/topics/file_io/save_frames.rb

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,8 @@ def draw
3434
# NB: Content created after this line does not show up rendered files
3535
text_align(CENTER)
3636
fill(255)
37-
if !recording
38-
text('Press r to start recording.', width / 2, height - 24)
39-
else
40-
text('Press r to stop recording.', width / 2, height - 24)
41-
end
37+
action = recording ? 'stop' : 'start'
38+
text("Press r to #{action} recording.", width / 2, height - 24)
4239
# A red dot for when we are recording
4340
stroke(255)
4441
recording ? fill(255, 0, 0) : no_fill

0 commit comments

Comments
 (0)