def make_field(name, _values, **kwargs):
    """
    specialization of make_parameters for parameters that define fields
    (aka color inputs). In this case the values is a list of name, type pairs
    where types must be one of 'rgb', 'lut', 'depth', 'value', or 'luminance'
    May also be given an set of valueRanges, which have min and max values for
    named 'value' type color selections.
    """

    values = _values.keys()
    img_types = _values.values()
    valid_itypes = ['rgb', 'lut', 'depth', 'value', 'luminance', 'normals']
    for i in img_types:
        if i not in valid_itypes:
            raise RuntimeError(
                "Invalid typechoice, must be one of %s" % str(valid_itypes))

    default = kwargs['default'] if 'default' in kwargs else values[0]
    if default not in values:
        raise RuntimeError("Invalid default, must be one of %s" % str(values))

    typechoice = 'hidden'

    label = kwargs['label'] if 'label' in kwargs else name

    properties = dict()
    properties['type'] = typechoice
    properties['label'] = label
    properties['values'] = values
    properties['default'] = default
    properties['types'] = img_types

    if 'valueRanges' in kwargs:
        properties['valueRanges'] = kwargs['valueRanges']

    return properties