		//create underlying texture
		if (texture.name != '' && texture.name != 'none') {
			context.save();
			context.beginPath();
			context.rect(x,y,ts,ts);
			context.clip();
			if (texture.composite === 'hueshift') {
				const hsl = DiceColors.hexToHSL(backcolor);
				const saturate = 0.5 + hsl.s * 1.5;
				const brightness = 0.5 + hsl.l;
				context.filter = `hue-rotate(${hsl.h}deg) saturate(${saturate}) brightness(${brightness})`;
				context.globalCompositeOperation = 'source-over';
			} else {
				context.globalCompositeOperation = texture.composite || 'source-over';
			}
			context.drawImage(texture.texture.source, texture.texture.frame.x, texture.texture.frame.y, texture.texture.frame.w, texture.texture.frame.h, x, y, ts, ts);
			context.restore();
			
			if (texture.bump != '') {
				contextBump.drawImage(texture.bump.source, texture.bump.frame.x, texture.bump.frame.y, texture.bump.frame.w, texture.bump.frame.h, x, y, ts, ts);
			}
		}

