You seem to have almost answered your own question: The xcolor plugin you point to has exactly the method you want:
$.xcolor.gradientlevel(color, color, position, size)
Your example would be:
$.xcolor.gradientlevel("#000000", "#ffffff", 50, 100)
Ned Batchelder
2010-10-17 01:05:35