     
     @inlinable
     public func convert<Model>(to colorSpace: DoggieGraphics.ColorSpace<Model>, intent: RenderingIntent = .default) -> Color<Model> {
-        return Color<Model>(colorSpace: colorSpace, color: self.colorSpace.convert(self.color, to: colorSpace, intent: intent), opacity: self.opacity)
+        let _color = self.colorSpace.convert(self.color, to: colorSpace, intent: intent)
+        return Color<Model>(colorSpace: colorSpace, color: _color, opacity: self.opacity)
     }
 }
 

    
    @inlinable
    public func linearTone() -> Color {
        return Color(colorSpace: colorSpace.linearTone, color: colorSpace.convertToLinear(color), opacity: opacity)
    }
}


    
    @inlinable
    public var cieXYZ: Color<XYZColorModel> {
        let _colorSpace = colorSpace.cieXYZ
        let _color = colorSpace.convertToXYZ(color)
        return Color<XYZColorModel>(colorSpace: _colorSpace, color: _color, opacity: opacity)
    }
}

