Lines Matching full:uniform
12 // Black is an opaque black uniform image.
14 // White is an opaque white uniform image.
16 // Transparent is a fully transparent uniform image.
18 // Opaque is a fully opaque uniform image.
22 // Uniform is an infinite-sized Image of uniform color.
24 type Uniform struct {
28 func (c *Uniform) RGBA() (r, g, b, a uint32) {
32 func (c *Uniform) ColorModel() color.Model {
36 func (c *Uniform) Convert(color.Color) color.Color {
40 func (c *Uniform) Bounds() Rectangle { return Rectangle{Point{-1e9, -1e9}, Point{1e9, 1e9}} }
42 func (c *Uniform) At(x, y int) color.Color { return c.C }
45 func (c *Uniform) Opaque() bool {
50 func NewUniform(c color.Color) *Uniform {
51 return &Uniform{c}