You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the Julia and C implementations, the color function checks if the point is inside bounds and if old_val == new_val.
These conditions are already checked in the find_neighbours function. So the points which are passed to color will always satisfy these conditions.The conditions are totally unnecessary. color can simply be:
defcolor(canvas, p, new_val):
canvas[p] =new_val
The text was updated successfully, but these errors were encountered:
In the Julia and C implementations, the
color
function checks if the point is inside bounds and ifold_val == new_val
.These conditions are already checked in the
find_neighbours
function. So the points which are passed tocolor
will always satisfy these conditions.The conditions are totally unnecessary.color
can simply be:The text was updated successfully, but these errors were encountered: