O1Library Docs
Fall 2026
Docs API

# Fill

o1.gui.Fill
See the Fill companion object
trait Fill

A supertype for objects that “can be used as paint” to define the fill color(s) of a shape. The simplest sort of fill is a Color, but gradients and other more complex fills may also be defined.

## Attributes

Companion
  object
Graph
Supertypes
  class Object
  trait Matchable
  class Any
Known subtypes
  class Color
  object None

## Members list

### Value members

#### Abstract methods

def swingPaint: Option[Paint]

Returns the corresponding `Paint` object for using this fill in Swing GUIs.

Returns the corresponding `Paint` object for using this fill in Swing GUIs.

## Attributes