Grasshopper Gradient from SDK

Does anybody know how to make a Gradient component
from c# , I need to make a custom one ready made trough a c# component


Thanks but I don’t want a new gradient tool, I just want to add a gradient on the canvas
and customize its colors and range (if possible)

I don’t see the gradient component in the sdk so I suppose its not exposed


private void RunScript(bool run, ref object A)
  if(!run) return;
  var grad = new GH_GradientControl();
  grad.Attributes.Pivot = new System.Drawing.PointF(100, 100);
  GrasshopperDocument.AddObject(grad, false);
} (2.2 KB)

Thanks, that is what I was searching for