// Copyright 2010 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

package image

import (
	
)

var (
	// Black is an opaque black uniform image.
	Black = NewUniform(color.Black)
	// White is an opaque white uniform image.
	White = NewUniform(color.White)
	// Transparent is a fully transparent uniform image.
	Transparent = NewUniform(color.Transparent)
	// Opaque is a fully opaque uniform image.
	Opaque = NewUniform(color.Opaque)
)

// Uniform is an infinite-sized Image of uniform color.
// It implements the color.Color, color.Model, and Image interfaces.
type Uniform struct {
	C color.Color
}

func ( *Uniform) () (, , ,  uint32) {
	return .C.RGBA()
}

func ( *Uniform) () color.Model {
	return 
}

func ( *Uniform) (color.Color) color.Color {
	return .C
}

func ( *Uniform) () Rectangle { return Rectangle{Point{-1e9, -1e9}, Point{1e9, 1e9}} }

func ( *Uniform) (,  int) color.Color { return .C }

func ( *Uniform) (,  int) color.RGBA64 {
	, , ,  := .C.RGBA()
	return color.RGBA64{uint16(), uint16(), uint16(), uint16()}
}

// Opaque scans the entire image and reports whether it is fully opaque.
func ( *Uniform) () bool {
	, , ,  := .C.RGBA()
	return  == 0xffff
}

// NewUniform returns a new Uniform image of the given color.
func ( color.Color) *Uniform {
	return &Uniform{}
}