code: def _get_struct_fillstyle(self, shape_number):
          
          obj = _make_object("FillStyle")
          obj.FillStyleType = style_type = unpack_ui8(self._src)
  
          if style_type == 0x00:
              if shape_number <= 2:
                  obj.Color = self._get_struct_rgb()
              else:
                  obj.Color = self._get_struct_rgba()
  
          if style_type in (0x10, 0x12, 0x13):
              obj.GradientMatrix = self._get_struct_matrix()
  
          if style_type in (0x10, 0x12):
              obj.Gradient = self._get_struct_gradient(shape_number)
          if style_type == 0x13:
              obj.Gradient = self._get_struct_focalgradient(shape_number)
  
          if style_type in (0x40, 0x41, 0x42, 0x43):
              obj.BitmapId = unpack_ui16(self._src)
              obj.BitmapMatrix = self._get_struct_matrix()
          return obj
docs: Get the values for the FILLSTYLE record.