Fixed coloring to use patterns instead of colors directly. This lets patterned layers still get colors.