       debug "cycle:", cycleCount
 
       contrast = chroma.contrast(bg, fg)
-      scaler = (6-contrast)/7
+      scaler = (options.contrast - contrast)/(options.contrast + 1)
       debug "scaler:", scaler
 
       if fg.luminance() < 0.98

      # we should change to avoid osscilating back and forth over our
      # desired constraints.
      contrast = chroma.contrast(bg, fg)
      scaler = (6-contrast)/7
      debug "scaler:", scaler

      # Constraints:


  bg = chroma(bg)
  fg = chroma(bg)


  # If the bg color is in the lighter side of the spectrum
  if chroma(bg).luminance() > 0.5
