Is there a way to export black and white image in grasshopper (rhino)

I am trying to render alpha channel of object in rhino view-port using grasshopper but did not figure it out yet.
black background, plain shape outlines white no details inside?
something like this alpha
there is a package called (Aviaryhttps://discourse.mcneel.com/t/say-hello-to-aviary/51879/32) that control some aspects of bitmap but still does not give the results
another thread here

any suggestions will be appreciated

private void RunScript(DataTree<Mesh> mesh, Color color)
{
  _meshes = mesh.AllData();
  for(var i = 0; i < _meshes.Count; i++)
  {
    _meshes[i].VertexColors.Clear();
    for(var j = 0; j < _meshes[i].Vertices.Count; j++)
      _meshes[i].VertexColors.Add(color);
  }
}
// <Custom additional code> 
private List<Mesh> _meshes;
public override void DrawViewportMeshes(IGH_PreviewArgs args)
{
  foreach(var mesh in _meshes)
    args.Display.DrawMeshFalseColors(mesh);
}

DrawMeshFalseColors.gh (209.2 KB)

4 Likes

that’s great,
thanks alot for this great tool. this solved my problem
I really appreciate it.