Click or drag to resize

GH_CapsuleRender Method (Graphics, Color)

Have this capsule draw itself onto a Graphics surface with a custom colour override.

Namespace:  Grasshopper.GUI.Canvas
Assembly:  Grasshopper (in Grasshopper.dll)
Syntax
public void Render(
	Graphics G,
	Color colour
)

Parameters

G
Type: System.DrawingGraphics
Graphics object to draw with. Zoom factor is implied by the G.Transform property.
colour
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.
See Also