Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PixelTriangle ¶
type PixelTriangle struct {
// contains filtered or unexported fields
}
PixelTriangle represents a triangle of pixels. It has one pixel at the top, and the width of the input image at the bottom.
func New ¶
func New() *PixelTriangle
func NewWithSeed ¶
func NewWithSeed(seed int64) *PixelTriangle
NewWithSeed returns a PixelTriangle with a fixed random seed.
func (*PixelTriangle) DrawSamples ¶
func (pt *PixelTriangle) DrawSamples(targetImage lincolor.Image)
DrawSamples draws red pixels in the image at the locations of the pixels in the triangle.
func (*PixelTriangle) Expand ¶
func (pt *PixelTriangle) Expand(targetImage lincolor.Image)
Expand overwrites the top part of the target image with the pixel triangle. Every row of the image will be overwritten, blending the space between pixels in the triangle.
Click to show internal directories.
Click to hide internal directories.