docs/notebooks/sprator_streamlit/CellularSprites.py
def combine(mat_outline: np.ndarray, mat_gradient: np.ndarray):
    """Combine the matrix with outline and the one with grads"""
    mat_final = np.copy(mat_outline)
    mask = mat_outline == 0
    mat_final[mask] = mat_gradient[mask]
    return mat_final
Combine the matrix with outline and the one with grads
Combine the matrix with outline and the one with grads
Combine the matrix with outline and the one with grads
def combine(mat_outline: np.ndarray, mat_gradient: np.ndarray):
    mat_final = np.copy(mat_outline)
    mask = mat_outline == 0
    mat_final[mask] = mat_gradient[mask]
    return mat_final
def combine ( mat_outline : np . ndarray , mat_gradient : np . ndarray ) : mat_final = np . copy ( mat_outline ) mask = mat_outline == 0 mat_final [ mask ] = mat_gradient [ mask ] return mat_final
Combine the matrix with outline and the one with grads
Combine the matrix with outline and the one with grads
"""Combine the matrix with outline and the one with grads"""
mat_outline
np.ndarray
mat_gradient
np.ndarray