Skip to content
/ go-rect Public

Package rect provides types that represents a rectangle filled in with a single color at a specific location, that seamlessly works with Go's built-in "image", "image/color", and "image/draw" packages.

License

Notifications You must be signed in to change notification settings

reiver/go-rect

Repository files navigation

go-rect

Package rect provides types that represents a rectangle filled in with a single color at a specific location, that seamlessly works with Go's built-in "image", "image/color", and "image/draw" packages.

Example

Here is an example of usage:

import "github.com/reiver/go-rect"

// ...

rectangle := rect.RGBA{
	X:x,
	Y:y,

	Width:width,
	Height:height,

	R: r,
	G: g,
	B: b,
	A: a,
}

// ...

draw.Draw(dst, rectangle.Bounds(), rectangle, rectangle.Bounds().Min, draw.Over)

Documention

Online documentation, which includes examples, can be found at: http://godoc.org/github.com/reiver/go-rect

GoDoc

See Also

For other useful Go packages that seamlessly works with Go's built-in "image", "image/color", and "image/draw" packages, also see:

About

Package rect provides types that represents a rectangle filled in with a single color at a specific location, that seamlessly works with Go's built-in "image", "image/color", and "image/draw" packages.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages