mask

package
v0.0.0-...-a30bc99 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 21, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package mask implements methods for masking images.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Circle

type Circle struct {
	P image.Point
	R int
}

func (*Circle) At

func (c *Circle) At(x, y int) color.Color

func (*Circle) Bounds

func (c *Circle) Bounds() image.Rectangle

func (*Circle) ColorModel

func (c *Circle) ColorModel() color.Model

type Triangle

type Triangle struct {
	P1 image.Point
	P2 image.Point
	P3 image.Point
}

func (Triangle) Area

func (t Triangle) Area() int

func (*Triangle) At

func (t *Triangle) At(x, y int) color.Color

func (*Triangle) Bounds

func (t *Triangle) Bounds() image.Rectangle

func (*Triangle) ColorModel

func (t *Triangle) ColorModel() color.Model

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL