EditorGUIUtility.DrawColorSwatch
static function DrawColorSwatch(position: Rect, color: Color): void;
static void DrawColorSwatch(Rect position, Color color);
static def DrawColorSwatch(position as Rect, color as Color) as void
Parameters

position The rectangle to draw the color swatch within.
color The color to draw.
Description

Draw a color swatch.