Updating line color based on height diff