Skip to content

Commit e4b8266

Browse files
committed
No need to close shape
1 parent 2d50e41 commit e4b8266

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

contributed/terrain.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def settings
2020
end
2121

2222
def setup
23-
sketch_title 'Terreno' # sketch_title doesn't work with P3D on PI
23+
sketch_title 'Terrain'
2424
@columns = WIDTH / SCL
2525
@rows = HEIGHT / SCL
2626
@terrain = {}
@@ -50,7 +50,7 @@ def draw
5050
terrain[Key.new(x, y)].to_vertex(renderer)
5151
terrain[Key.new(x, y.succ)].to_vertex(renderer)
5252
end
53-
end_shape(CLOSE)
53+
end_shape
5454
end
5555
end
5656

0 commit comments

Comments
 (0)