Returns the current opacity
double getOpacity({T? paintId}) { return getPaint(paintId).color.opacity; }