Encapsulate gradient editor test functionality in a class. Limit angle values to [0, 360) degrees.