Expression painter:setangleunit(unit) sets the angle unit for functions such as painter:rotate that require an angle as argument.

Argument unit must be string "Degrees" for expressing angles in degrees, or "Radians" for expressing angles in radians. The default angle unit is the degree.