Move matrices functions in color helper