GH_CapsuleRender Method (Graphics, Image, Color)
Have this capsule draw itself onto a Graphics surface with a custom colour override.
Grasshopper (in Grasshopper.dll)
public void Render(
Public Sub Render (
G As Graphics,
icon As Image,
colour As Color
- Type: System.DrawingGraphics
Graphics object to draw with. Zoom factor is implied by the G.Transform property.
- Type: System.DrawingImage
Icon to render in center of content/bounding box.
- Type: System.DrawingColor
Base colour for the capsule. Other colours will be derived from the base colour.
If you want full control over every colour involved, then use the overload that allows you
to supply a custom Style instead.