Skip to content

Commit 908239a

Browse files
committed
Update glsl_heightmap_noise.rb
Fix halfway changed format
1 parent 770a39b commit 908239a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

samples/processing_app/topics/shaders/glsl_heightmap_noise.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,10 @@ def create_plane(xsegs, ysegs)
116116
def key_pressed
117117
case key
118118
when '1', '2'
119-
@current_color_map = key.to_i % 2 #images.size
119+
@current_color_map = key.to_i % 2 # images.size for more than two
120120
displace.set('colorMap', images[current_color_map])
121121
else
122-
puts 'key pressed: #{key}'
122+
puts format('key pressed: %s', key)
123123
end # cycle through colorMaps (set variable and set colorMap in PShader)
124124
end
125125

0 commit comments

Comments
 (0)