We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d12b78a commit 274b022Copy full SHA for 274b022
processing_app/topics/file_io/save_frames.rb
@@ -34,11 +34,8 @@ def draw
34
# NB: Content created after this line does not show up rendered files
35
text_align(CENTER)
36
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
+ action = recording ? 'stop' : 'start'
+ text("Press r to #{action} recording.", width / 2, height - 24)
42
# A red dot for when we are recording
43
stroke(255)
44
recording ? fill(255, 0, 0) : no_fill
0 commit comments