package
Version:
v0.1.0
Opens a new window with list of versions in this module.
Published: Jan 1, 2019
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
-
func Clamp(min, max, v float64) float64
-
func IntAbs(x int) int
-
func Parallel(width, height int, f func(x1, y1, x2, y2 int)) chan struct{}
-
func ParallelR(r image.Rectangle, f func(x1, y1, x2, y2 int)) chan struct{}
Clamp force v to be between min and max.
IntAbs returns the absolute value of x.
func Parallel(width, height int, f func(x1, y1, x2, y2 int)) chan struct{}
Parallel runs f in runtime.NumCPU() parallel tiles.
ParallelR runs Parallel with the given r boundaries.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.