         switch orientation {
         case .horizontal:
             length = w
-            thickness = h
+            breadth = h
         case .vertical:
             length = h
-            thickness = w
+            breadth = w
         }
-        
-        cutoff = length/10
-        strokeWidth = thickness/10
         
         super.init(frame: frame)
         self.backgroundColor = UIColor.clear

        case vertical
    }
    
    /// How 'thick' the segment is. This is always the smaller value between length and thickness.
    var thickness: CGFloat = 5.0
    
    /// Length of the segment. It is always the longer value between length and thickness.
    var length: CGFloat = 25.0
    
    /// The side of triangle at each corner that is cutoff to give the 'tip' of the segment. Otherwise it is 1/15th of the length.
    var cutoff: CGFloat = 5.0
    
    /// Indicates whether the segment is "upright": vertical or "sideways": horizontal. This is ONLY to indicate which dimension is longer to help draw the segment.
    var orientation: Orientation
    
    /// The dominant color of each segment. Defaults to red.
    var fillColor: UIColor = UIColor.red
    
    /// The outline color of each segment. Defaults to white.
    var strokeColor: UIColor = UIColor.white
    
    /// The width used to stroke the outline of each segment. It is always thickness/10.
    var strokeWidth: CGFloat = 0.5
    
    override init(frame: CGRect) {
        let h = frame.size.height

    }
    
    override var description: String {
        return "\(orientation) > (\(breadth), \(length))"
    }
}

