Sub CalcArea
Area = Math.Round(Wid*Wid-(2*Wid*Wid/16)*Math.Pi-3*((Wid/2)*(Wid/2)-Math.Pi*(Wid/4)*(Wid/4)))
Shapes.SetText(Txt,"The area of the heart will be "+Area+" square pixels.")
EndSub
Sub TextEnter
If Text.IsSubText(Controls.GetTextBoxText(TB),Text.GetCharacter(10)) Then
Wid = Controls.GetTextBoxText(TB)
DrawHeart()
CalcArea()
EndIf
EndSub