def handle_generic_config(config, params, key_args)
      fc, oc, wi, da, st =
        key_args.values_at(*%w{fill outline width dash stipple})
      if fc
        ## skip if we saw this one before?
        val = fc[params] rescue fc
        config[:fill] = color_str(val)
      end
      if oc
        val = oc[params] rescue oc
        config[:outline] = color_str(val)
      end
      if wi
        config[:width] = wi[params] rescue wi
      end
      if da
        val = da[params] rescue da
        config[:dash] = dash_val val
      end
      if st
        config[:stipple] = st[params] rescue st
        ## how to use "@filename" to load file once and then use bitmap name?
      end
    end
def handle_generic_config(config, params, key_args)
      fc, oc, wi, da, st =
        key_args.values_at(*%w{fill outline width dash stipple})
      if fc
        ## skip if we saw this one before?
        val = fc[params] rescue fc
        config[:fill] = color_str(val)
      end
      if oc
        val = oc[params] rescue oc
        config[:outline] = color_str(val)
      end
      if wi
        config[:width] = wi[params] rescue wi
      end
      if da
        val = da[params] rescue da
        config[:dash] = dash_val val
      end
      if st
        config[:stipple] = st[params] rescue st
        ## how to use "@filename" to load file once and then use bitmap name?
      end
    end
handles the following options:

  fill
  outline
  width
  dash
  stipple