Rhino 6 grasshopper missing assembly error with color input

I have a missing assembly error in grasshopper c# component when trying to use Color as input.

  1. Error (CS0246): The type or namespace name ‘Color’ could not be found (are you missing a using directive or an assembly reference?) (line 55)

You need to add this line to the editable using blocks area of your C# component:

using System.Drawing;

Taitam.gh (12.7 KB)

cool, I didn’t it was possible to add reference like this in a c# component. thx

Editable using blocks is only available in Grasshopper for Rhino 6.