Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf405dde

Browse files
authored
Fix oops
1 parentecdcebb commitf405dde

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎Recursive/FloodFill.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ function breadthFirstFill(
105105

106106
if(rgbData[currentLocation[0]][currentLocation[1]]===targetColor){
107107
rgbData[currentLocation[0]][currentLocation[1]]=replacementColor
108-
for(constneighborLocationofneighbors(currentLocation)){
108+
for(constneighborLocationofneighbors(rgbData,currentLocation)){
109109
queue.push(neighborLocation)
110110
}
111111
}
@@ -122,7 +122,7 @@ function breadthFirstFill(
122122
functiondepthFirstFill(rgbData,location,targetColor,replacementColor){
123123
if(rgbData[location[0]][location[1]]===targetColor){
124124
rgbData[location[0]][location[1]]=replacementColor
125-
for(constneighborLocationofneighbors(currentLocation)){
125+
for(constneighborLocationofneighbors(rgbData,currentLocation)){
126126
depthFirstFill(rgbData,neighborLocation,targetColor,replacementColor)
127127
}
128128
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp