Spin cam3d2d Text

So I have a cam3d2d on a entity I have and I want the text above the entity to spin around.
Current Code:



hook.Add("PostDrawOpaqueRenderables", "WD_Face", function()
	for _, ent in pairs (ents.FindByClass("wardrobe")) do
		if ent:GetPos():Distance(LocalPlayer():GetPos()) < 500 then
			local ang = ent:GetAngles()
		
			ang:RotateAroundAxis( ang:Forward(), 90)
			ang:RotateAroundAxis( ang:Right(), -90)

			cam.Start3D2D(ent:GetPos() + ent:GetForward() * 0 + ent:GetUp() * 55, ang, 0.4)
				// draw.RoundedBox(number cornerRadius,number x,number y,number width,number height,table color)
				draw.SimpleText( "Wardrobe", "WDFont", 0, 0, Color(0,100,255), TEXT_ALIGN_CENTER, TEXT_ALIGN_TOP)
			cam.End3D2D()
		end
	end
end)


You should use something like



local time = 10 -- Time it takes to do one loop
local timeDelta = (CurTime() % time) / time
-- Here, timeDelta is a delta that goes from 0 to 1 as the thing loops, so you can multiply it by 360 and add it to the angle


How would I put this into the text?