paint

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2016 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package paint provides functions to edit a group of pixels on an image.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FloodFill

func FloodFill(img image.Image, sp image.Point, c color.Color, t uint8) *image.RGBA

FloodFill fills a area of the image with a provided color and returns the new image. Parameter sp is the starting point of the fill. Parameter c is the fill color. Parameter t is the tolerance and is of the range 0 to 255. It represents the max amount of difference between colors for them to be considered similar.

Types

This section is empty.

Jump to

Keyboard shortcuts

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