Documentation
¶
Index ¶
- Constants
- Variables
- func AOFromHeight(source image.Image, radius int) image.Image
- func AmbientOcclusionRadius(radius int) func(any)
- func BootstrapGridReferences() (map[string]func(image.Rectangle) image.Image, []string)
- func BootstrapGridUnboundedReferences() (map[string]func(image.Rectangle) image.Image, []string)
- func BootstrapPaddingReferences() (map[string]func(image.Rectangle) image.Image, []string)
- func BootstrapTileReferences() (map[string]func(image.Rectangle) image.Image, []string)
- func Cell(content any) any
- func CellPos(x, y int, content any) any
- func Column(cells ...any) any
- func ConcentricWaterAmplitude(amplitude float64) func(any)
- func ConcentricWaterAmplitudeFalloff(falloff float64) func(any)
- func ConcentricWaterBaseTint(tint color.RGBA) func(any)
- func ConcentricWaterLightDirection(x, y, z float64) func(any)
- func ConcentricWaterNormalStrength(strength float64) func(any)
- func ConcentricWaterRingSpacing(spacing float64) func(any)
- func CurvatureFromHeight(source image.Image) image.Image
- func DefaultPredicate(c color.Color) float64
- func ExampleChunkyBands()
- func ExampleMaterial_basic()
- func ExampleNewAbstractArt() image.Image
- func ExampleNewAmbientOcclusion()
- func ExampleNewBayer2x2Dither()
- func ExampleNewBayerDither()
- func ExampleNewBitwiseAnd()
- func ExampleNewBlueNoise()
- func ExampleNewBooleanAnd()
- func ExampleNewBooleanModes()
- func ExampleNewBooleanNot()
- func ExampleNewBooleanOr()
- func ExampleNewBooleanXor()
- func ExampleNewBrick() image.Image
- func ExampleNewBrick_stone() image.Image
- func ExampleNewBrick_textures() image.Image
- func ExampleNewBuffer()
- func ExampleNewCamouflage()
- func ExampleNewCandy()
- func ExampleNewCarpet() image.Image
- func ExampleNewCells()
- func ExampleNewChecker()
- func ExampleNewCheckerBorder() image.Image
- func ExampleNewChippedBrick() image.Image
- func ExampleNewCircle()
- func ExampleNewCircuit() image.Image
- func ExampleNewClouds() image.Image
- func ExampleNewClouds_cirrus() image.Image
- func ExampleNewClouds_cumulus() image.Image
- func ExampleNewClouds_storm() image.Image
- func ExampleNewClouds_sunset() image.Image
- func ExampleNewColorMap()
- func ExampleNewConcentricRings()
- func ExampleNewConcentricWater() image.Image
- func ExampleNewConicGradient()
- func ExampleNewCrackedMud()
- func ExampleNewCrossHatch()
- func ExampleNewCurvature()
- func ExampleNewDamascus()
- func ExampleNewDirt() image.Image
- func ExampleNewDirt_mud() image.Image
- func ExampleNewDitherColorReduction() image.Image
- func ExampleNewDitherStages() image.Image
- func ExampleNewDungeon() image.Image
- func ExampleNewEdgeDetect()
- func ExampleNewErrorDiffusion()
- func ExampleNewFantasyFrame() image.Image
- func ExampleNewFence() image.Image
- func ExampleNewFibonacci()
- func ExampleNewFineGrid()
- func ExampleNewFloor() image.Image
- func ExampleNewFog() image.Image
- func ExampleNewGlobe()
- func ExampleNewGlobe_Grid()
- func ExampleNewGlobe_Projected()
- func ExampleNewGlobe_Simple()
- func ExampleNewGlyphRing()
- func ExampleNewGopher()
- func ExampleNewGradientQuantization()
- func ExampleNewGrass()
- func ExampleNewGrassClose()
- func ExampleNewGrid(ops ...func(any)) image.Image
- func ExampleNewGridUnbounded(ops ...func(any)) image.Image
- func ExampleNewHeatmap()
- func ExampleNewHexGrid()
- func ExampleNewHorizontalLine()
- func ExampleNewIce() image.Image
- func ExampleNewIslands()
- func ExampleNewKnollDither() image.Image
- func ExampleNewLava()
- func ExampleNewLavaFlow() image.Image
- func ExampleNewLinearGradient()
- func ExampleNewMathsJulia()
- func ExampleNewMathsMandelbrot()
- func ExampleNewMathsSine()
- func ExampleNewMathsWaves()
- func ExampleNewMetal() image.Image
- func ExampleNewMetalPlate() image.Image
- func ExampleNewMetal_scratched() image.Image
- func ExampleNewMirror()
- func ExampleNewModuloStripe()
- func ExampleNewMolecules()
- func ExampleNewMudTracks()
- func ExampleNewNoise()
- func ExampleNewNormalMap() image.Image
- func ExampleNewNormalMap_sphere() image.Image
- func ExampleNewNull()
- func ExampleNewOrderedDither()
- func ExampleNewPCBTraces() image.Image
- func ExampleNewPadding(ops ...func(any)) image.Image
- func ExampleNewPaintedPlanks() image.Image
- func ExampleNewPebbles()
- func ExampleNewPersianRug() image.Image
- func ExampleNewPixelCamo() image.Image
- func ExampleNewPlasma()
- func ExampleNewPolka()
- func ExampleNewQuantize()
- func ExampleNewRadialGradient()
- func ExampleNewRect()
- func ExampleNewRoad() image.Image
- func ExampleNewRoad_marked() image.Image
- func ExampleNewRoad_terrain() image.Image
- func ExampleNewRotate()
- func ExampleNewSand() image.Image
- func ExampleNewSand_dunes() image.Image
- func ExampleNewSand_zoomed() image.Image
- func ExampleNewScales()
- func ExampleNewScreenTone()
- func ExampleNewShojo()
- func ExampleNewShojo_blue()
- func ExampleNewShojo_pink()
- func ExampleNewSierpinskiCarpet()
- func ExampleNewSierpinskiTriangle()
- func ExampleNewSimpleZoom()
- func ExampleNewSlate() image.Image
- func ExampleNewSnow() image.Image
- func ExampleNewSnow_tracks() image.Image
- func ExampleNewSpeedLines()
- func ExampleNewStarfield()
- func ExampleNewStone() image.Image
- func ExampleNewStone_cobble() image.Image
- func ExampleNewStones()
- func ExampleNewStripe() image.Image
- func ExampleNewSubpixelLines()
- func ExampleNewThreadBands()
- func ExampleNewTile(ops ...func(any)) image.Image
- func ExampleNewTransposed()
- func ExampleNewVHS()
- func ExampleNewVerticalLine()
- func ExampleNewVoronoi()
- func ExampleNewVoronoiTiles()
- func ExampleNewWarp()
- func ExampleNewWarp_clouds() image.Image
- func ExampleNewWarp_marble() image.Image
- func ExampleNewWarp_terrain() image.Image
- func ExampleNewWarp_wood() image.Image
- func ExampleNewWater() image.Image
- func ExampleNewWater_surface() image.Image
- func ExampleNewWaveBorder() image.Image
- func ExampleNewWindRidges()
- func ExampleNewWindowsDither() image.Image
- func ExampleNewWindowsDither4x4() image.Image
- func ExampleNewWindowsDitherHalftone() image.Image
- func ExampleNewWood() image.Image
- func ExampleNewWorleyNoise()
- func ExampleNewWorleyTiles() image.Image
- func ExampleNewXorGrid()
- func ExampleNewYliluoma1Dither() image.Image
- func ExampleNewYliluoma2Dither() image.Image
- func ExampleRect_blue()
- func ExampleRect_border_demo()
- func ExampleRect_bounded()
- func ExampleRect_image_stroke()
- func ExampleRect_stroked()
- func ExampleSpeedLines_GopherBurst()
- func FixedSize(w, h int) any
- func GenerateAbstractArt(rect image.Rectangle) image.Image
- func GenerateAmbientOcclusion(rect image.Rectangle) image.Image
- func GenerateBayer2x2Dither(b image.Rectangle) image.Image
- func GenerateBayer2x2DitherReferences() (map[string]func(image.Rectangle) image.Image, []string)
- func GenerateBayerDither(b image.Rectangle) image.Image
- func GenerateBayerDitherReferences() (map[string]func(image.Rectangle) image.Image, []string)
- func GenerateBayerInt(n int) []int
- func GenerateBitwiseAnd(b image.Rectangle) image.Image
- func GenerateBitwiseAndReferences() (map[string]func(image.Rectangle) image.Image, []string)
- func GenerateBlueNoise(b image.Rectangle) image.Image
- func GenerateBlueNoiseReferences() (map[string]func(image.Rectangle) image.Image, []string)
- func GenerateBooleanAnd(b image.Rectangle) image.Image
- func GenerateBooleanAndReferences() (map[string]func(image.Rectangle) image.Image, []string)
- func GenerateBooleanModes(b image.Rectangle) image.Image
- func GenerateBooleanModesReferences() (map[string]func(image.Rectangle) image.Image, []string)
- func GenerateBooleanNot(b image.Rectangle) image.Image
- func GenerateBooleanNotReferences() (map[string]func(image.Rectangle) image.Image, []string)
- func GenerateBooleanOr(b image.Rectangle) image.Image
- func GenerateBooleanOrReferences() (map[string]func(image.Rectangle) image.Image, []string)
- func GenerateBooleanXor(b image.Rectangle) image.Image
- func GenerateBooleanXorReferences() (map[string]func(image.Rectangle) image.Image, []string)
- func GenerateBrickReferences() (map[string]func(image.Rectangle) image.Image, []string)
- func GenerateBuffer(b image.Rectangle) image.Image
- func GenerateCamouflage(b image.Rectangle) image.Image
- func GenerateCandy(b image.Rectangle) image.Image
- func GenerateCarpet(rect image.Rectangle) image.Image
- func GenerateCells(b image.Rectangle) image.Image
- func GenerateChecker(b image.Rectangle) image.Image
- func GenerateCheckerBorder(rect image.Rectangle) image.Image
- func GenerateChippedBrick(bounds image.Rectangle) image.Image
- func GenerateChunkyBands(b image.Rectangle) image.Image
- func GenerateCircle(b image.Rectangle) image.Image
- func GenerateCircleReferences() (map[string]func(image.Rectangle) image.Image, []string)
- func GenerateCircuit(rect image.Rectangle) image.Image
- func GenerateCircuitImpl(rect image.Rectangle) image.Image
- func GenerateClouds(rect image.Rectangle) image.Image
- func GenerateCloudsReferences() (map[string]func(image.Rectangle) image.Image, []string)
- func GenerateCloudsReferences_Empty() (map[string]func(image.Rectangle) image.Image, []string)
- func GenerateClouds_cirrus(rect image.Rectangle) image.Image
- func GenerateClouds_cumulus(rect image.Rectangle) image.Image
- func GenerateClouds_storm(rect image.Rectangle) image.Image
- func GenerateClouds_sunset(rect image.Rectangle) image.Image
- func GenerateColorMap(b image.Rectangle) image.Image
- func GenerateColorMapReferences() (map[string]func(image.Rectangle) image.Image, []string)
- func GenerateConcentricRings(b image.Rectangle) image.Image
- func GenerateConcentricRingsReferences() (map[string]func(image.Rectangle) image.Image, []string)
- func GenerateConcentricWater(b image.Rectangle) image.Image
- func GenerateConcentricWaterReferences() (map[string]func(image.Rectangle) image.Image, []string)
- func GenerateConicGradient(b image.Rectangle) image.Image
- func GenerateCrackedMud(b image.Rectangle) image.Image
- func GenerateCrossHatch(rect image.Rectangle) image.Image
- func GenerateCrossHatchReferences() (map[string]func(image.Rectangle) image.Image, []string)
- func GenerateCurvature(rect image.Rectangle) image.Image
- func GenerateDamascus(b image.Rectangle) image.Image
- func GenerateDirt(rect image.Rectangle) image.Image
- func GenerateDirt_mud(rect image.Rectangle) image.Image
- func GenerateDitherColorReduction(b image.Rectangle) image.Image
- func GenerateDitherColorReductionReferences() (map[string]func(image.Rectangle) image.Image, []string)
- func GenerateDitherStages(b image.Rectangle) image.Image
- func GenerateDitherStagesReferences() (map[string]func(image.Rectangle) image.Image, []string)
- func GenerateDungeon(rect image.Rectangle) image.Image
- func GenerateEarthTexture(b image.Rectangle) image.Image
- func GenerateEdgeDetect(b image.Rectangle) image.Image
- func GenerateEdgeDetectReferences() (map[string]func(image.Rectangle) image.Image, []string)
- func GenerateErrorDiffusion(b image.Rectangle) image.Image
- func GenerateErrorDiffusionReferences() (map[string]func(image.Rectangle) image.Image, []string)
- func GenerateFantasyFrame(rect image.Rectangle) image.Image
- func GenerateFence(rect image.Rectangle) image.Image
- func GenerateFibonacci(b image.Rectangle) image.Image
- func GenerateFibonacciReferences() (map[string]func(image.Rectangle) image.Image, []string)
- func GenerateFineGrid(b image.Rectangle) image.Image
- func GenerateFineGridMagenta(b image.Rectangle) image.Image
- func GenerateFineGridReferences() (map[string]func(image.Rectangle) image.Image, []string)
- func GenerateFineGridWarm(b image.Rectangle) image.Image
- func GenerateFloor(rect image.Rectangle) image.Image
- func GenerateFog(b image.Rectangle) image.Image
- func GenerateFogReferences() (map[string]func(image.Rectangle) image.Image, []string)
- func GenerateGlobe(b image.Rectangle) image.Image
- func GenerateGlobe_Grid(b image.Rectangle) image.Image
- func GenerateGlobe_Projected(b image.Rectangle) image.Image
- func GenerateGlobe_Simple(b image.Rectangle) image.Image
- func GenerateGlyphRing(rect image.Rectangle) image.Image
- func GenerateGlyphRingReferences() (map[string]func(image.Rectangle) image.Image, []string)
- func GenerateGopher(b image.Rectangle) image.Image
- func GenerateGopherReferences() (map[string]func(image.Rectangle) image.Image, []string)
- func GenerateGradientQuantization(b image.Rectangle) image.Image
- func GenerateGradientQuantizationReferences() (map[string]func(image.Rectangle) image.Image, []string)
- func GenerateGrass(b image.Rectangle) image.Image
- func GenerateGrassClose(b image.Rectangle) image.Image
- func GenerateGrassCloseReferences() (map[string]func(image.Rectangle) image.Image, []string)
- func GenerateHeatmap(b image.Rectangle) image.Image
- func GenerateHexGrid(b image.Rectangle) image.Image
- func GenerateHorizontalLine(b image.Rectangle) image.Image
- func GenerateIce(rect image.Rectangle) image.Image
- func GenerateIslands(b image.Rectangle) image.Image
- func GenerateKnollDither(b image.Rectangle) image.Image
- func GenerateLava(b image.Rectangle) image.Image
- func GenerateLavaFlow(rect image.Rectangle) image.Image
- func GenerateLinearGradient(b image.Rectangle) image.Image
- func GenerateLinearGradientReferences() (map[string]func(image.Rectangle) image.Image, []string)
- func GenerateMathsJulia(b image.Rectangle) image.Image
- func GenerateMathsMandelbrot(b image.Rectangle) image.Image
- func GenerateMathsSine(b image.Rectangle) image.Image
- func GenerateMathsWaves(b image.Rectangle) image.Image
- func GenerateMetal(rect image.Rectangle) image.Image
- func GenerateMetalPlate(rect image.Rectangle) image.Image
- func GenerateMetal_scratched(rect image.Rectangle) image.Image
- func GenerateMirror(b image.Rectangle) image.Image
- func GenerateMirrorReferences() (map[string]func(image.Rectangle) image.Image, []string)
- func GenerateModuloStripe(b image.Rectangle) image.Image
- func GenerateModuloStripeReferences() (map[string]func(image.Rectangle) image.Image, []string)
- func GenerateMolecules(b image.Rectangle) image.Image
- func GenerateMudTracks(b image.Rectangle) image.Image
- func GenerateNoise(b image.Rectangle) image.Image
- func GenerateNoiseReferences() (map[string]func(image.Rectangle) image.Image, []string)
- func GenerateNormalMap(rect image.Rectangle) image.Image
- func GenerateNormalMap_sphere(rect image.Rectangle) image.Image
- func GenerateNull(b image.Rectangle) image.Image
- func GenerateOrderedDither(b image.Rectangle) image.Image
- func GenerateOrderedDitherReferences() (map[string]func(image.Rectangle) image.Image, []string)
- func GeneratePCBTraces(bounds image.Rectangle) image.Image
- func GeneratePaintedPlanks(rect image.Rectangle) image.Image
- func GeneratePaintedPlanksReferences() (map[string]func(image.Rectangle) image.Image, []string)
- func GeneratePebbles(b image.Rectangle) image.Image
- func GeneratePersianRug(rect image.Rectangle) image.Image
- func GeneratePersianRugImpl(rect image.Rectangle) image.Image
- func GeneratePixelCamo(rect image.Rectangle) image.Image
- func GeneratePlasma(b image.Rectangle) image.Image
- func GeneratePlasmaReferences() (map[string]func(image.Rectangle) image.Image, []string)
- func GeneratePolka(b image.Rectangle) image.Image
- func GenerateQuantize(b image.Rectangle) image.Image
- func GenerateQuantizeReferences() (map[string]func(image.Rectangle) image.Image, []string)
- func GenerateRadialGradient(b image.Rectangle) image.Image
- func GenerateRect(b image.Rectangle) image.Image
- func GenerateRectReferences() (map[string]func(image.Rectangle) image.Image, []string)
- func GenerateRoad(rect image.Rectangle) image.Image
- func GenerateRoad_marked(rect image.Rectangle) image.Image
- func GenerateRoad_terrain(rect image.Rectangle) image.Image
- func GenerateRotate(b image.Rectangle) image.Image
- func GenerateRotateReferences() (map[string]func(image.Rectangle) image.Image, []string)
- func GenerateSand(rect image.Rectangle) image.Image
- func GenerateSand_dunes(rect image.Rectangle) image.Image
- func GenerateSand_zoomed(rect image.Rectangle) image.Image
- func GenerateScales(b image.Rectangle) image.Image
- func GenerateScreenTone(b image.Rectangle) image.Image
- func GenerateShojo(rect image.Rectangle) image.Image
- func GenerateShojoReferences() (map[string]func(image.Rectangle) image.Image, []string)
- func GenerateShojo_blue(rect image.Rectangle) image.Image
- func GenerateShojo_pink(rect image.Rectangle) image.Image
- func GenerateSierpinskiCarpet(b image.Rectangle) image.Image
- func GenerateSierpinskiTriangle(b image.Rectangle) image.Image
- func GenerateSimpleZoom(b image.Rectangle) image.Image
- func GenerateSlate(rect image.Rectangle) image.Image
- func GenerateSnow(rect image.Rectangle) image.Image
- func GenerateSnow_tracks(rect image.Rectangle) image.Image
- func GenerateSpeedLines(b image.Rectangle) image.Image
- func GenerateSpeedLinesReferences() (map[string]func(image.Rectangle) image.Image, []string)
- func GenerateStarfield(b image.Rectangle) image.Image
- func GenerateStone(rect image.Rectangle) image.Image
- func GenerateStone_cobble(rect image.Rectangle) image.Image
- func GenerateStones(b image.Rectangle) image.Image
- func GenerateStripe(rect image.Rectangle) image.Image
- func GenerateSubpixelLines(b image.Rectangle) image.Image
- func GenerateThreadBands(rect image.Rectangle) image.Image
- func GenerateThreadBandsReferences() (map[string]func(image.Rectangle) image.Image, []string)
- func GenerateTransposed(b image.Rectangle) image.Image
- func GenerateTransposedReferences() (map[string]func(image.Rectangle) image.Image, []string)
- func GenerateVHS(b image.Rectangle) image.Image
- func GenerateVerticalLine(b image.Rectangle) image.Image
- func GenerateVoronoi(b image.Rectangle) image.Image
- func GenerateVoronoiTiles(b image.Rectangle) image.Image
- func GenerateWarp(rect image.Rectangle) image.Image
- func GenerateWarpReferences() (map[string]func(image.Rectangle) image.Image, []string)
- func GenerateWarpReferences_Empty() (map[string]func(image.Rectangle) image.Image, []string)
- func GenerateWarp_clouds(rect image.Rectangle) image.Image
- func GenerateWarp_marble(rect image.Rectangle) image.Image
- func GenerateWarp_terrain(rect image.Rectangle) image.Image
- func GenerateWarp_wood(rect image.Rectangle) image.Image
- func GenerateWater(rect image.Rectangle) image.Image
- func GenerateWater_surface(rect image.Rectangle) image.Image
- func GenerateWaveBorder(rect image.Rectangle) image.Image
- func GenerateWindRidges(b image.Rectangle) image.Image
- func GenerateWindRidgesReferences() (map[string]func(image.Rectangle) image.Image, []string)
- func GenerateWindowsDither(b image.Rectangle) image.Image
- func GenerateWindowsDither4x4(b image.Rectangle) image.Image
- func GenerateWindowsDitherHalftone(b image.Rectangle) image.Image
- func GenerateWindowsDitherReferences() (map[string]func(image.Rectangle) image.Image, []string)
- func GenerateWood(rect image.Rectangle) image.Image
- func GenerateWoodReferences() (map[string]func(image.Rectangle) image.Image, []string)
- func GenerateWorleyNoise(b image.Rectangle) image.Image
- func GenerateWorleyNoiseReferences() (map[string]func(image.Rectangle) image.Image, []string)
- func GenerateWorleyTiles(bounds image.Rectangle) image.Image
- func GenerateXorGrid(b image.Rectangle) image.Image
- func GenerateXorGridReferences() (map[string]func(image.Rectangle) image.Image, []string)
- func GenerateYliluoma1Dither(b image.Rectangle) image.Image
- func GenerateYliluoma2Dither(b image.Rectangle) image.Image
- func GradientCenter(x, y float64) func(any)
- func GradientVertical() func(any)
- func GridSize(cols, rows int) any
- func HeightToNormal(source image.Image, strength float64) image.Image
- func NewAligned(img image.Image, width, height int, xAlign, yAlign float64, bg image.Image, ...) image.Image
- func NewAmbientOcclusion(source image.Image, ops ...func(any)) image.Image
- func NewAnd(inputs []image.Image, ops ...func(any)) image.Image
- func NewBayer2x2Dither(img image.Image, palette color.Palette, ops ...func(any)) image.Image
- func NewBayer4x4Dither(img image.Image, palette color.Palette, ops ...func(any)) image.Image
- func NewBayer8x8Dither(img image.Image, palette color.Palette, ops ...func(any)) image.Image
- func NewBayerDither(input image.Image, size int, ops ...func(any)) image.Image
- func NewBitwiseAnd(inputs []image.Image, ops ...func(any)) image.Image
- func NewBitwiseNot(input image.Image, ops ...func(any)) image.Image
- func NewBitwiseOr(inputs []image.Image, ops ...func(any)) image.Image
- func NewBitwiseXor(inputs []image.Image, ops ...func(any)) image.Image
- func NewBlend(i1, i2 image.Image, mode BlendMode, ops ...func(any)) image.Image
- func NewBlueNoise(ops ...func(any)) image.Image
- func NewBlueNoiseDither(img image.Image, palette color.Palette, ops ...func(any)) image.Image
- func NewBrick(ops ...func(any)) image.Image
- func NewCenter(img image.Image, width, height int, bg image.Image) image.Image
- func NewChecker(color1, color2 color.Color, ops ...func(any)) image.Image
- func NewChippedBrick(ops ...func(any)) image.Image
- func NewChunkyBands(ops ...func(any)) image.Image
- func NewCircle(ops ...func(any)) image.Image
- func NewColorMap(source image.Image, stops ...ColorStop) image.Image
- func NewConcentricRings(colors []color.Color, ops ...func(any)) image.Image
- func NewConcentricWater(ops ...func(any)) image.Image
- func NewConicGradient(ops ...func(any)) image.Image
- func NewCrop(img image.Image, rect image.Rectangle) image.Image
- func NewCrossHatch(ops ...func(any)) image.Image
- func NewCurvature(source image.Image, ops ...func(any)) image.Image
- func NewDemoAnd(ops ...func(any)) image.Image
- func NewDemoChecker(ops ...func(any)) image.Image
- func NewDemoChunkyBands(ops ...func(any)) image.Image
- func NewDemoCircle(ops ...func(any)) image.Image
- func NewDemoCrossHatch(ops ...func(any)) image.Image
- func NewDemoEdgeDetect(ops ...func(any)) image.Image
- func NewDemoErrorDiffusion(ops ...func(any)) image.Image
- func NewDemoFibonacci(ops ...func(any)) image.Image
- func NewDemoFineGrid(ops ...func(any)) image.Image
- func NewDemoGlyphRing(ops ...func(any)) image.Image
- func NewDemoGridAdvanced(ops ...func(any)) image.Image
- func NewDemoGridBounded(ops ...func(any)) image.Image
- func NewDemoGridColumns(ops ...func(any)) image.Image
- func NewDemoGridFixed(ops ...func(any)) image.Image
- func NewDemoGridFlexible(ops ...func(any)) image.Image
- func NewDemoGridRows(ops ...func(any)) image.Image
- func NewDemoHorizontalLine(ops ...func(any)) image.Image
- func NewDemoMirrorInput(b image.Rectangle) image.Image
- func NewDemoNot(ops ...func(any)) image.Image
- func NewDemoNull(ops ...func(any)) image.Image
- func NewDemoOr(ops ...func(any)) image.Image
- func NewDemoOrderedDither(ops ...func(any)) image.Image
- func NewDemoPaddingAlignedWithOffset(ops ...func(any)) image.Image
- func NewDemoPaddingBottomRight(ops ...func(any)) image.Image
- func NewDemoPaddingBounded(ops ...func(any)) image.Image
- func NewDemoPaddingCentered(ops ...func(any)) image.Image
- func NewDemoPaddingColor(ops ...func(any)) image.Image
- func NewDemoPaddingRight(ops ...func(any)) image.Image
- func NewDemoPaddingTopLeft(ops ...func(any)) image.Image
- func NewDemoPolka(ops ...func(any)) image.Image
- func NewDemoRect(ops ...func(any)) image.Image
- func NewDemoRotateInput(b image.Rectangle) image.Image
- func NewDemoSimpleZoom(img image.Image, ops ...func(any)) image.Image
- func NewDemoSubpixelLines(ops ...func(any)) image.Image
- func NewDemoThreadBands(ops ...func(any)) image.Image
- func NewDemoTransposed(ops ...func(any)) image.Image
- func NewDemoVerticalLine(ops ...func(any)) image.Image
- func NewDemoVoronoi(ops ...func(any)) image.Image
- func NewDemoXor(ops ...func(any)) image.Image
- func NewEdgeDetect(img image.Image, ops ...func(any)) image.Image
- func NewErrorDiffusion(img image.Image, kernel DiffusionKernel, p color.Palette, ops ...func(any)) image.Image
- func NewFibonacci(ops ...func(any)) image.Image
- func NewFineGrid(ops ...func(any)) image.Image
- func NewFog(ops ...func(any)) image.Image
- func NewGeneric(f func(x, y int) color.Color) image.Image
- func NewGlobe(ops ...func(any)) image.Image
- func NewGlyphRing(ops ...func(any)) image.Image
- func NewGoLogo() image.Image
- func NewGopher() image.Image
- func NewGrassClose(ops ...func(any)) image.Image
- func NewGrid(ops ...any) image.Image
- func NewHalftoneDither(img image.Image, size int, palette color.Palette, ops ...func(any)) image.Image
- func NewHeatmap(f HeatmapFunc, ops ...func(any)) image.Image
- func NewHexGrid(ops ...func(any)) image.Image
- func NewHorizontalLine(ops ...func(any)) image.Image
- func NewKnollDither(img image.Image, palette color.Palette, size int, ops ...func(any)) image.Image
- func NewLinearGradient(ops ...func(any)) image.Image
- func NewMaths(f MathsFunc, ops ...func(any)) image.Image
- func NewMirror(img image.Image, horizontal, vertical bool, ops ...func(any)) image.Image
- func NewModuloStripe(colors []color.Color, ops ...func(any)) image.Image
- func NewMultiScaleOrderedDither(img image.Image, palette color.Palette, ops ...func(any)) image.Image
- func NewNoise(ops ...func(any)) image.Image
- func NewNormalMap(source image.Image, ops ...func(any)) image.Image
- func NewNot(input image.Image, ops ...func(any)) image.Image
- func NewNull(ops ...func(any)) image.Image
- func NewOr(inputs []image.Image, ops ...func(any)) image.Image
- func NewOrderedDither(img image.Image, matrix []float64, dim int, palette color.Palette, ...) image.Image
- func NewPCBTraces(ops ...func(any)) image.Image
- func NewPadding(img image.Image, opts ...PaddingOption) image.Image
- func NewPaintedPlanks(ops ...func(any)) image.Image
- func NewPlasma(ops ...func(any)) image.Image
- func NewPolka(ops ...func(any)) image.Image
- func NewQuantize(img image.Image, levels int, ops ...func(any)) image.Image
- func NewRadialGradient(ops ...func(any)) image.Image
- func NewRandomDither(img image.Image, palette color.Palette, seed int64, ops ...func(any)) image.Image
- func NewRect(ops ...func(any)) image.Image
- func NewRotate(img image.Image, degrees int, ops ...func(any)) image.Image
- func NewScale(img image.Image, opts ...ScaleOption) image.Image
- func NewScales(ops ...func(any)) image.Image
- func NewScatter(ops ...func(any)) image.Image
- func NewScreenTone(ops ...func(any)) image.Image
- func NewShojo(ops ...func(any)) image.Image
- func NewSierpinskiCarpet(ops ...func(any)) image.Image
- func NewSierpinskiTriangle(ops ...func(any)) image.Image
- func NewSimpleZoom(img image.Image, factor int, ops ...func(any)) image.Image
- func NewSolid(c color.Color) image.Image
- func NewSpeedLines(ops ...func(any)) image.Image
- func NewSubpixelLines(ops ...func(any)) image.Image
- func NewText(s string, opts ...TextOption) image.Image
- func NewThreadBands(ops ...func(any)) image.Image
- func NewTile(img image.Image, bounds image.Rectangle) image.Image
- func NewTransposed(img image.Image, x, y int, ops ...func(any)) image.Image
- func NewUniform(c color.Color) image.Image
- func NewVHS(img image.Image, ops ...func(any)) image.Image
- func NewVerticalLine(ops ...func(any)) image.Image
- func NewVoronoi(points []image.Point, colors []color.Color, ops ...func(any)) image.Image
- func NewVoronoiTiles(bounds image.Rectangle, cellSize, gapWidth, heightBoost float64, seed int64) image.Image
- func NewWarp(source image.Image, ops ...func(any)) image.Image
- func NewWindRidges(ops ...func(any)) image.Image
- func NewWorleyNoise(ops ...func(any)) image.Image
- func NewWorleyTiles(ops ...func(any)) image.Image
- func NewXor(inputs []image.Image, ops ...func(any)) image.Image
- func NewXorPattern(ops ...func(any)) image.Image
- func NewYliluoma1Dither(input image.Image, palette color.Palette, size int, ops ...func(any)) image.Image
- func NewYliluoma2Dither(input image.Image, palette color.Palette, size int, ops ...func(any)) image.Image
- func NoiseSeed(seed int64) func(any)deprecated
- func NormalMapStrength(strength float64) func(any)
- func PredicateAnyAlpha(c color.Color) float64
- func PredicateInk(c color.Color) float64
- func RegisterGenerator(name string, gen func(image.Rectangle) image.Image)
- func RegisterReferences(name string, ...)
- func Row(cells ...any) any
- func SetAngle(v float64) func(any)
- func SetAngles(v ...float64) func(any)
- func SetBackgroundColor(v color.Color) func(any)
- func SetBandColor(v color.Color) func(any)
- func SetBandThickness(v int) func(any)
- func SetBladeHeight(h float64) func(any)
- func SetBladeWidth(w float64) func(any)
- func SetBlockSize(v int) func(any)
- func SetBooleanMode(m BooleanMode) func(any)
- func SetBounds(bounds image.Rectangle) func(ai any)
- func SetBrickImages(imgs ...image.Image) func(any)
- func SetBrickOffset(o float64) func(any)
- func SetBrickSize(w, h int) func(any)
- func SetCenter(x, y int) func(any)
- func SetChipIntensity(v float64) func(any)
- func SetColorOffset(i int) func(any)
- func SetColorVariance(v float64) func(any)
- func SetCopperColor(v color.Color) func(any)
- func SetCrossShadowDepth(v float64) func(any)
- func SetDarkThreadColor(col color.Color) func(any)
- func SetDensity(v float64) func(any)
- func SetDensitySource(src image.Image) func(any)
- func SetEdgeAwareness(v float64) func(any)
- func SetEndColor(v color.Color) func(any)
- func SetExpiry(v time.Duration) func(any)
- func SetFalloffCurve(v float64) func(any)
- func SetFalseColor(v color.Color) func(any)
- func SetFillColor(v color.Color) func(any)
- func SetFillImageSource(v image.Image) func(any)
- func SetFineGridAberration(offset int) func(any)
- func SetFineGridBackgroundFade(fade float64) func(any)
- func SetFineGridCellSize(size int) func(any)
- func SetFineGridGlowRadius(radius float64) func(any)
- func SetFineGridGlowStrength(strength float64) func(any)
- func SetFineGridHue(h float64) func(any)
- func SetFineGridLineStrength(strength float64) func(any)
- func SetFloatCenter(x, y float64) func(any)
- func SetFrequency(v float64) func(any)
- func SetFrequencyX(v float64) func(any)
- func SetFrequencyY(v float64) func(any)
- func SetGamma(v float64) func(any)
- func SetGlowColor(v color.Color) func(any)
- func SetGlowSize(v int) func(any)
- func SetGlyphSize(v int) func(any)
- func SetGrainIntensity(v float64) func(any)
- func SetHexBevelDepth(depth float64) func(any)
- func SetHexPalette(pal color.Palette) func(any)
- func SetHueJitter(v float64) func(any)
- func SetLatitudeLines(v int) func(any)
- func SetLightThreadColor(col color.Color) func(any)
- func SetLineColor(v color.Color) func(any)
- func SetLineImageSource(v image.Image) func(any)
- func SetLineSize(v int) func(any)
- func SetLineThickness(thickness int) func(any)
- func SetLongitudeLines(v int) func(any)
- func SetMaxRadius(v float64) func(any)
- func SetMinRadius(v float64) func(any)
- func SetMortarDepth(v float64) func(any)
- func SetMortarImage(img image.Image) func(any)
- func SetMortarSize(s int) func(any)
- func SetNoiseAlgorithm(algo NoiseAlgorithm) func(any)
- func SetNoiseIntensity(f float64) func(any)
- func SetOffsetStrength(strength float64) func(any)
- func SetPCBPadDensity(v float64) func(any)
- func SetPaintColor(c color.RGBA) func(any)
- func SetPaintWear(v float64) func(any)
- func SetPalette(v ...color.Color) func(any)
- func SetPhase(v float64) func(any)
- func SetPlankBaseWidth(w int) func(any)
- func SetPlankWidthVariance(v float64) func(any)
- func SetPredicate(p ColorPredicate) func(any)
- func SetRadius(v int) func(any)
- func SetRuneColor(v color.Color) func(any)
- func SetScaleRadius(v int) func(any)
- func SetScaleXSpacing(v int) func(any)
- func SetScaleYSpacing(v int) func(any)
- func SetScanlineFrequency(f float64) func(any)
- func SetScanlineIntensity(f float64) func(any)
- func SetScatterDensity(d float64) func(any)
- func SetScatterFrequency(f float64) func(any)
- func SetScatterGenerator(g ScatterGenerator) func(any)
- func SetScatterMaxOverlap(overlap int) func(any)
- func SetSeed(v int64) func(any)
- func SetSerpentine(v bool) func(any)
- func SetSolderMaskTint(v color.Color) func(any)
- func SetSpaceColor(v color.Color) func(any)
- func SetSpaceImageSource(v image.Image) func(any)
- func SetSpaceSize(v int) func(any)
- func SetSpacing(v int) func(any)
- func SetStartColor(v color.Color) func(any)
- func SetStreakLength(length int) func(any)
- func SetThreadWidth(v int) func(any)
- func SetThreshold(t float64) func(any)
- func SetTileGapWidth(v float64) func(any)
- func SetTileJitter(j float64) func(any)
- func SetTilePalette(colors ...color.RGBA) func(any)
- func SetTilePaletteSpread(v float64) func(any)
- func SetTileStoneSize(v float64) func(any)
- func SetTilt(v float64) func(any)
- func SetTrueColor(v color.Color) func(any)
- func SetVignetteRadius(radius float64) func(any)
- func SetWindAngle(angle float64) func(any)
- func SetWindContrast(contrast float64) func(any)
- func SetWindNoise(img image.Image) func(any)
- func SetWindSource(src image.Image) func(any)
- func SetWorleyJitter(j float64) func(any)
- func SetWorleyMetric(m DistanceMetric) func(any)
- func SetWorleyOutput(o WorleyOutput) func(any)
- func SetXRange(min, max float64) func(any)
- func SetYRange(min, max float64) func(any)
- func SetZRange(min, max float64) func(any)
- func SpeedLinesLinearType() func(any)
- func StableHash(x, y int, seed uint64) uint64
- func WarpDistortion(img image.Image) func(any)
- func WarpDistortionScale(scale float64) func(any)
- func WarpDistortionX(img image.Image) func(any)
- func WarpDistortionY(img image.Image) func(any)
- func WarpScale(scale float64) func(any)
- func WarpXScale(scale float64) func(any)
- func WarpYScale(scale float64) func(any)
- func WithSeed(v uint64) func(any)
- type AmbientOcclusion
- type And
- type Angle
- type Angles
- type BayerDither
- type Blend
- type BlendMode
- type BlockSize
- type BlueNoise
- type BooleanImage
- type BooleanMode
- type BooleanOpType
- type Bounded
- type Bounds
- type Brick
- type BrickOffset
- type BrickSize
- type Buffer
- type Center
- type Checker
- type ChipIntensity
- type ChippedBrick
- func (b *ChippedBrick) At(x, y int) color.Color
- func (b *ChippedBrick) ColorModel() color.Model
- func (b *ChippedBrick) SetBounds(r image.Rectangle)
- func (b *ChippedBrick) SetBrickOffset(v float64)
- func (b *ChippedBrick) SetBrickSize(w, h int)
- func (b *ChippedBrick) SetChipIntensity(v float64)
- func (b *ChippedBrick) SetHueJitter(v float64)
- func (b *ChippedBrick) SetMortarDepth(v float64)
- func (b *ChippedBrick) SetMortarSize(v int)
- func (b *ChippedBrick) SetSeed(v int64)
- func (b *ChippedBrick) SetSeedUint64(v uint64)
- type ChunkyBands
- type Circle
- type ColorMap
- type ColorPredicate
- type ColorStop
- type ConcentricRings
- type ConcentricWater
- type ConicGradient
- type Crop
- type CrossHatch
- type CrossShadow
- type CryptoNoise
- type Curvature
- type DarkColor
- type Density
- type DiffusionItem
- type DiffusionKernel
- type DirtyAware
- type DistanceMetric
- type EdgeAwareness
- type EdgeDetect
- type EndColor
- type ErrorDiffusion
- type Expiry
- type FalloffCurve
- type FalseColor
- type Fibonacci
- type FillColor
- type FillImageSource
- type FineGrid
- type FloatCenter
- type Fog
- type Frequency
- type FrequencyX
- type FrequencyY
- type Gamma
- type Generic
- type Globe
- type GlyphRing
- func (p *GlyphRing) At(x, y int) color.Color
- func (p *GlyphRing) Bounds() image.Rectangle
- func (p *GlyphRing) ColorModel() color.Model
- func (p *GlyphRing) SetBackgroundColor(v color.Color)
- func (p *GlyphRing) SetBandColor(v color.Color)
- func (p *GlyphRing) SetBandThickness(v int)
- func (p *GlyphRing) SetGlowColor(v color.Color)
- func (p *GlyphRing) SetGlowSize(v int)
- func (p *GlyphRing) SetGlyphSize(v int)
- func (p *GlyphRing) SetRuneColor(v color.Color)
- type GrassClose
- type Grid
- type HashNoise
- type Heatmap
- type HeatmapFunc
- type HexGrid
- type HorizontalLine
- type KnollDither
- type LatitudeLines
- type LightColor
- type LineColor
- type LineImageSource
- type LineSize
- type LinearGradient
- type LongitudeLines
- type Material
- type Maths
- type MathsFunc
- type MaxRadius
- type MinRadius
- type Mirror
- type ModuloStripe
- type MortarDepth
- type MortarSize
- type MudTracksOption
- type MultiScaleOrderedDither
- type Noise
- type NoiseAlgorithm
- type NormalMap
- type Not
- type Null
- type Or
- type OrderedDither
- type PCBTraces
- func (p *PCBTraces) At(x, y int) color.Color
- func (p *PCBTraces) Bounds() image.Rectangle
- func (p *PCBTraces) ColorModel() color.Model
- func (p *PCBTraces) SetBounds(b image.Rectangle)
- func (p *PCBTraces) SetCopperColor(c color.Color)
- func (p *PCBTraces) SetPadDensity(v float64)
- func (p *PCBTraces) SetSolderMaskTint(c color.Color)
- type Padding
- type PaddingOption
- func PaddingBackground(bg image.Image) PaddingOption
- func PaddingBottom(m int) PaddingOption
- func PaddingBoundary(r image.Rectangle) PaddingOption
- func PaddingCenter() PaddingOption
- func PaddingCenterBox(bounds image.Rectangle) PaddingOption
- func PaddingCenterIn(bounds image.Rectangle, imgBounds image.Rectangle) PaddingOption
- func PaddingLeft(m int) PaddingOption
- func PaddingMargin(m int) PaddingOption
- func PaddingRight(m int) PaddingOption
- func PaddingTop(m int) PaddingOption
- type PaintedPlanks
- func (p *PaintedPlanks) At(x, y int) color.Color
- func (p *PaintedPlanks) SetGrainIntensity(v float64)
- func (p *PaintedPlanks) SetPaintColor(c color.RGBA)
- func (p *PaintedPlanks) SetPaintWear(v float64)
- func (p *PaintedPlanks) SetPlankBaseWidth(w int)
- func (p *PaintedPlanks) SetPlankWidthVariance(v float64)
- type Palette
- type PerlinNoise
- type Phase
- type Plasma
- type Polka
- type Quantize
- type RadialGradient
- type Radius
- type RandomDither
- type Range
- type Rect
- type Rotate
- type ScaleOption
- func ScaleAlg(s draw.Scaler) ScaleOptiondeprecated
- func ScaleFactor(f float64) ScaleOptiondeprecated
- func ScaleSize(w, h int) ScaleOption
- func ScaleToFraction(f float64) ScaleOption
- func ScaleToMultiple(f int) ScaleOption
- func ScaleToRatio(f float64) ScaleOption
- func ScaleToSize(w, h int) ScaleOption
- func ScaleUsing(s draw.Scaler) ScaleOption
- func ScaleX(f float64) ScaleOption
- func ScaleY(f float64) ScaleOption
- type ScaleRadius
- type ScaleXSpacing
- type ScaleYSpacing
- type ScaledImage
- type Scales
- type Scatter
- type ScatterGenerator
- type ScatterItem
- type ScreenTone
- type Seed
- type Serpentine
- type Shojo
- type SierpinskiCarpet
- type SierpinskiTriangle
- type SimpleZoom
- type SpaceColor
- type SpaceImageSource
- type SpaceSize
- type Spacing
- type SpeedLines
- type SpeedLinesType
- type StartColor
- type SubpixelLines
- type TextOption
- type ThreadBands
- func (t *ThreadBands) At(x, y int) color.Color
- func (t *ThreadBands) SetColorVariance(v float64)
- func (t *ThreadBands) SetCrossShadowDepth(v float64)
- func (t *ThreadBands) SetDarkThreadColor(v color.Color)
- func (t *ThreadBands) SetLightThreadColor(v color.Color)
- func (t *ThreadBands) SetThreadWidth(v int)
- type ThreadColorVariance
- type ThreadWidthOption
- type Tile
- type Tilt
- type Transposed
- type TrueColor
- type VHS
- type VerticalLine
- type Voronoi
- type Warp
- type WindRidges
- type WorleyNoise
- type WorleyOutput
- type WorleyTiles
- type Xor
- type XorPattern
- type Yliluoma1Dither
- type Yliluoma2Dither
Constants ¶
const ( // Phi is the Golden Ratio. Phi = 1.618033988749895 // GoldenSpiralB is the growth factor for the Golden Spiral (2 * ln(Phi) / pi). GoldenSpiralB = 0.30634896253 )
const ( GridOrder = 5 GridBaseLabel = "Grid" )
const ( GridUnboundedOrder = 7 GridUnboundedBaseLabel = "Unbounded" )
const ( PaddingOrder = 8 PaddingBaseLabel = "Padding" )
const Bayer2x2DitherBaseLabel = "Bayer2x2Dither"
const Bayer2x2DitherOrder = 31
const BayerDitherOrder = 34
const BitwiseAndOrder = 37
const BlueNoiseOrder = 35
const BooleanAndOrder = 20
const BooleanModesOrder = 38
const BooleanNotOrder = 23
const BooleanOrOrder = 21
const BooleanXorOrder = 22
const BufferOrder = 100
const CamouflageBaseLabel = "Camouflage"
const CandyBaseLabel = "Candy"
const CellsBaseLabel = "Cells"
const CheckerOrder = 1
const CircleBaseLabel = "Circle"
const CircleOrder = 24
const ColorMapBaseLabel = "Grass"
Base label for the main example
const ColorMapOrder = 25
const ConcentricRingsOrder = 32
const ConcentricWaterOrder = 370
const ConicGradientOrder = 32
const CrackedMudBaseLabel = "CrackedMud"
const DamascusBaseLabel = "Damascus"
const DitherColorReductionOrder = 104
const DitherStagesOrder = 103
const EdgeDetectOrder = 100 // Arbitrary order
const ErrorDiffusionOrder = 101 // Arbitrary order
const FibonacciBaseLabel = "Fibonacci"
const FibonacciOrder = 25 // Adjust as needed to fit in the list
const FineGridBaseLabel = "FineGrid"
const FogOrder = 105
const GlobeBaseLabel = "Globe"
const GlyphRingBaseLabel = "GlyphRing"
const GopherBaseLabel = "Gopher"
const GopherOrder = 20
const GradientQuantizationOrder = 36
const GrassBaseLabel = "Grass"
const GrassCloseBaseLabel = "Grass Close"
const HeatmapOrder = 24
const HexGridBaseLabel = "HexGrid"
const HorizontalLineOrder = 10
const IslandsBaseLabel = "Islands"
const LavaBaseLabel = "Lava"
const LinearGradientBaseLabel = "Horizontal"
const LinearGradientOrder = 30
const MathsJuliaOrder = 21
const MathsMandelbrotOrder = 20
const MathsSineOrder = 22
const MathsWavesOrder = 23
const MirrorBaseLabel = "Grid"
const MirrorOrder = 32
const ModuloStripeOrder = 31
const MoleculesBaseLabel = "Molecules"
const MudTracksBaseLabel = "MudTracks"
const NoiseOrder = 20
const NullOrder = 0
const OrderedDitherOrder = 102 // Arbitrary order
const PebblesBaseLabel = "Pebbles"
const PlasmaOrder = 33
const QuantizeBaseLabel = "Quantize"
const QuantizeOrder = 30
const RadialGradientOrder = 31
const RectOrder = 20
const RotateBaseLabel = "Grid"
const RotateOrder = 33
const ScalesBaseLabel = "Scales"
const ShojoBaseLabel = "Shojo"
const Shojo_blueBaseLabel = "Blue Variant"
const Shojo_pinkBaseLabel = "Pink Variant"
const SierpinskiCarpetOrder = 41
const SierpinskiTriangleOrder = 40
const SimpleZoomOrder = 30
const SpeedLinesBaseLabel = "SpeedLines"
const SpeedLinesOrder = 25
const StarfieldBaseLabel = "Starfield"
const StonesBaseLabel = "Stones"
const SubpixelLinesOrder = 41
const TransposedOrder = 31
const VHSOrder = 40 // Adjust order as needed
const VerticalLineOrder = 11
const VoronoiBaseLabel = "Voronoi"
const VoronoiTilesBaseLabel = "Voronoi_tiles"
const WindRidgesBaseLabel = "WindRidges"
const WorleyNoiseBaseLabel = "WorleyNoise"
const XorGridOrder = 30
Variables ¶
var ( BrickOutputFilename = "brick.png" BrickZoomLevels = []int{} BrickBaseLabel = "Brick" BrickOrder = 20 )
var ( Brick_texturesOutputFilename = "brick_textures.png" Brick_texturesZoomLevels = []int{} Brick_texturesBaseLabel = "Brick Textures" )
var ( Brick_stoneOutputFilename = "brick_stone.png" Brick_stoneZoomLevels = []int{} Brick_stoneBaseLabel = "Stone Wall" )
var ( ChippedBrickOutputFilename = "chipped_brick.png" ChippedBrickZoomLevels = []int{} ChippedBrickBaseLabel = "ChippedBrick" )
var ( CloudsOutputFilename = "clouds.png" CloudsZoomLevels = []int{} CloudsBaseLabel = "Clouds" )
Main Clouds Example
var ( Clouds_cumulusOutputFilename = "clouds_cumulus.png" Clouds_cumulusZoomLevels = []int{} Clouds_cumulusBaseLabel = "Cumulus" )
var ( Clouds_cirrusOutputFilename = "clouds_cirrus.png" Clouds_cirrusZoomLevels = []int{} Clouds_cirrusBaseLabel = "Cirrus" )
var ( Clouds_stormOutputFilename = "clouds_storm.png" Clouds_stormZoomLevels = []int{} Clouds_stormBaseLabel = "Storm" )
var ( Clouds_sunsetOutputFilename = "clouds_sunset.png" Clouds_sunsetZoomLevels = []int{} Clouds_sunsetBaseLabel = "Sunset" )
var ( // CrossHatchZoomLevels defines the zoom levels for the CrossHatch pattern documentation. CrossHatchZoomLevels = []int{} // CrossHatchOutputFilename defines the output filename for the CrossHatch pattern image. CrossHatchOutputFilename = "crosshatch.png" // CrossHatchBaseLabel defines the base label for the CrossHatch pattern. CrossHatchBaseLabel = "CrossHatch" )
var ( DirtOutputFilename = "dirt.png" Dirt_mudOutputFilename = "dirt_mud.png" )
var ( // FloydSteinberg is the classic error diffusion kernel (7, 3, 5, 1) / 16. FloydSteinberg = DiffusionKernel{ Items: []DiffusionItem{ {1, 0, 7}, {-1, 1, 3}, {0, 1, 5}, {1, 1, 1}, }, Divisor: 16, } // JarvisJudiceNinke is a larger kernel (5x3) for smoother gradients. JarvisJudiceNinke = DiffusionKernel{ Items: []DiffusionItem{ {1, 0, 7}, {2, 0, 5}, {-2, 1, 3}, {-1, 1, 5}, {0, 1, 7}, {1, 1, 5}, {2, 1, 3}, {-2, 2, 1}, {-1, 2, 3}, {0, 2, 5}, {1, 2, 3}, {2, 2, 1}, }, Divisor: 48, } // Stucki is similar to Jarvis but with different weights for sharper edges. Stucki = DiffusionKernel{ Items: []DiffusionItem{ {1, 0, 8}, {2, 0, 4}, {-2, 1, 2}, {-1, 1, 4}, {0, 1, 8}, {1, 1, 4}, {2, 1, 2}, {-2, 2, 1}, {-1, 2, 2}, {0, 2, 4}, {1, 2, 2}, {2, 2, 1}, }, Divisor: 42, } // Atkinson is a 3x2 kernel designed for small icons. Atkinson = DiffusionKernel{ Items: []DiffusionItem{ {1, 0, 1}, {2, 0, 1}, {-1, 1, 1}, {0, 1, 1}, {1, 1, 1}, {0, 2, 1}, }, Divisor: 8, } // Burkes is an efficient 5x2 kernel. Burkes = DiffusionKernel{ Items: []DiffusionItem{ {1, 0, 8}, {2, 0, 4}, {-2, 1, 2}, {-1, 1, 4}, {0, 1, 8}, {1, 1, 4}, {2, 1, 2}, }, Divisor: 32, } // SierraLite is a compact 3x2 kernel. SierraLite = DiffusionKernel{ Items: []DiffusionItem{ {1, 0, 2}, {-1, 1, 1}, {0, 1, 1}, }, Divisor: 4, } // Sierra2 (Two-row Sierra) is a balanced 5x2 kernel. Sierra2 = DiffusionKernel{ Items: []DiffusionItem{ {1, 0, 4}, {2, 0, 3}, {-2, 1, 1}, {-1, 1, 2}, {0, 1, 3}, {1, 1, 2}, {2, 1, 1}, }, Divisor: 16, } // Sierra3 (Full Sierra) is a 5x3 kernel. Sierra3 = DiffusionKernel{ Items: []DiffusionItem{ {1, 0, 5}, {2, 0, 3}, {-2, 1, 2}, {-1, 1, 4}, {0, 1, 5}, {1, 1, 4}, {2, 1, 2}, {-1, 2, 2}, {0, 2, 3}, {1, 2, 2}, }, Divisor: 32, } // StevensonArce diffuses error in a dispersed pattern. StevensonArce = DiffusionKernel{ Items: []DiffusionItem{ {2, 0, 32}, {-3, 1, 12}, {-1, 1, 26}, {1, 1, 30}, {-1, 2, 16}, {1, 2, 12}, }, Divisor: 128, } )
Predefined kernels.
var ( FineGridOutputFilename = "fine_grid.png" FineGridZoomLevels = []int{} )
var ( FloorOutputFilename = "floor.png" Floor_woodOutputFilename = "floor_wood.png" )
var ( FogOutputFilename = "fog.png" FogZoomLevels = []int{} FogBaseLabel = "Fog" )
var ( GlobeOutputFilename = "globe.png" Globe_SimpleOutputFilename = "globe_simple.png" Globe_ProjectedOutputFilename = "globe_projected.png" Globe_GridOutputFilename = "globe_grid.png" )
var ( GlyphRingOutputFilename = "glyph_ring.png" GlyphRingZoomLevels = []int{} GlyphRingOrder = 101 )
var ( GridOutputFilename = "grid.png" GridZoomLevels = []int{} )
var ( GridUnboundedOutputFilename = "grid_unbounded.png" GridUnboundedZoomLevels = []int{} )
var ( AmbientOcclusionOutputFilename = "ambient_occlusion.png" CurvatureOutputFilename = "curvature.png" )
var ( MetalOutputFilename = "metal.png" Metal_scratchedOutputFilename = "metal_scratched.png" )
var ( NormalMapOutputFilename = "normal_map.png" NormalMap_sphereOutputFilename = "normal_map_sphere.png" )
var ( PaddingOutputFilename = "padding.png" PaddingZoomLevels = []int{2} )
var ( PaintedPlanksOutputFilename = "painted_planks.png" PaintedPlanksZoomLevels = []int{} PaintedPlanksBaseLabel = "PaintedPlanks" )
var ( DungeonOutputFilename = "dungeon.png" IceOutputFilename = "ice.png" CircuitOutputFilename = "circuit.png" FenceOutputFilename = "fence.png" StripeOutputFilename = "stripe.png" AbstractArtOutputFilename = "abstract_art.png" // Renamed from Crystal PixelCamoOutputFilename = "pixel_camo.png" CheckerBorderOutputFilename = "checker_border.png" WaveBorderOutputFilename = "wave_border.png" CarpetOutputFilename = "carpet.png" PersianRugOutputFilename = "persian_rug.png" LavaFlowOutputFilename = "lava_flow.png" MetalPlateOutputFilename = "metal_plate.png" FantasyFrameOutputFilename = "fantasy_frame.png" )
var ( GlobalGenerators = make(map[string]func(image.Rectangle) image.Image) GlobalReferences = make(map[string]func() (map[string]func(image.Rectangle) image.Image, []string)) )
var ( RoadOutputFilename = "road.png" Road_markedOutputFilename = "road_marked.png" Road_terrainOutputFilename = "road_terrain.png" )
var ( SandOutputFilename = "sand.png" Sand_dunesOutputFilename = "sand_dunes.png" Sand_zoomedOutputFilename = "sand_zoomed.png" )
var ( ShojoOutputFilename = "shojo.png" ShojoZoomLevels = []int{} ShojoOrder = 25 )
var ( Shojo_pinkOutputFilename = "shojo_pink.png" Shojo_pinkZoomLevels = []int{} Shojo_pinkOrder = 26 )
var ( Shojo_blueOutputFilename = "shojo_blue.png" Shojo_blueZoomLevels = []int{} Shojo_blueOrder = 27 )
var ( SnowOutputFilename = "snow.png" Snow_tracksOutputFilename = "snow_tracks.png" )
var ( StoneOutputFilename = "stone.png" Stone_cobbleOutputFilename = "stone_cobble.png" )
var ( ThreadBandsOutputFilename = "thread_bands.png" ThreadBandsZoomLevels = []int{} ThreadBandsBaseLabel = "ThreadBands" )
var ( TileOutputFilename = "tile.png" TileZoomLevels = []int{} TileOrder = 6 TileBaseLabel = "Tiled" )
var ( WorleyTilesOutputFilename = "tile_worley.png" WorleyTilesZoomLevels = []int{} WorleyTilesBaseLabel = "WorleyTiles" )
var ( WarpOutputFilename = "warp.png" WarpZoomLevels = []int{} WarpBaseLabel = "Warp" )
Main Warp Example Variables defined here to ensure findStringVar finds them easily.
var ( Warp_woodOutputFilename = "warp_wood.png" Warp_woodZoomLevels = []int{} Warp_woodBaseLabel = "Wood" )
var ( Warp_marbleOutputFilename = "warp_marble.png" Warp_marbleZoomLevels = []int{} Warp_marbleBaseLabel = "Marble" )
var ( Warp_cloudsOutputFilename = "warp_clouds.png" Warp_cloudsZoomLevels = []int{} Warp_cloudsBaseLabel = "Clouds" )
var ( Warp_terrainOutputFilename = "warp_terrain.png" Warp_terrainZoomLevels = []int{} Warp_terrainBaseLabel = "Terrain" )
var ( WaterOutputFilename = "water.png" Water_surfaceOutputFilename = "water_surface.png" )
var ( WoodOutputFilename = "wood.png" WoodZoomLevels = []int{} // No zoom needed for texture WoodBaseLabel = "Wood" )
var Bayer2x2 = generateBayer(2)
Bayer2x2 Matrix
var Bayer2x2DitherOutputFilename = "bayer2x2.png"
var Bayer2x2DitherZoomLevels = []int{}
var Bayer4x4 = generateBayer(4)
Bayer4x4 Matrix
var Bayer8x8 = generateBayer(8)
Bayer8x8 Matrix
var BayerDitherOutputFilename = "bayer_dither.png"
var BayerDitherZoomLevels = []int{}
var BitwiseAndOutputFilename = "bitwise_and.png"
var BitwiseAndZoomLevels = []int{}
var BlueNoiseOutputFilename = "bluenoise.png"
var BlueNoiseZoomLevels = []int{}
var BooleanAndOutputFilename = "boolean_and.png"
var BooleanAndZoomLevels = []int{}
var BooleanModesOutputFilename = "boolean_modes.png"
var BooleanModesZoomLevels = []int{}
var BooleanNotOutputFilename = "boolean_not.png"
var BooleanNotZoomLevels = []int{}
var BooleanOrOutputFilename = "boolean_or.png"
var BooleanOrZoomLevels = []int{}
var BooleanXorOutputFilename = "boolean_xor.png"
var BooleanXorZoomLevels = []int{}
var BufferOutputFilename = "buffer.png"
var BufferZoomLevels = []int{}
var CamouflageOutputFilename = "camouflage.png"
var CandyOutputFilename = "candy.png"
var CellsOutputFilename = "cells.png"
var CheckerOutputFilename = "checker.png"
var CheckerZoomLevels = []int{2, 4}
var ChunkyBandsOutputFilename = "chunky_bands.png"
var CircleOutputFilename = "circle.png"
var CircleZoomLevels = []int{}
var ColorMapOutputFilename = "colormap.png"
var ColorMapZoomLevels = []int{}
var ConcentricRingsOutputFilename = "concentric_rings.png"
var ConcentricRingsZoomLevels = []int{}
var ConcentricWaterOutputFilename = "concentric_water.png"
var ConcentricWaterZoomLevels = []int{}
var ConicGradientOutputFilename = "conic_gradient.png"
var ConicGradientZoomLevels = []int{}
var CrackedMudOutputFilename = "cracked_mud.png"
var DamascusOutputFilename = "damascus.png"
var DitherColorReductionOutputFilename = "dither_color_reduction.png"
var DitherColorReductionZoomLevels = []int{}
var DitherStagesOutputFilename = "dither_stages.png"
DitherStagesOutputFilename defines the output filename for the stages example.
var DitherStagesZoomLevels = []int{}
var EdgeDetectOutputFilename = "edgedetect.png"
var EdgeDetectZoomLevels = []int{} // No zoom levels by default for now, or maybe 1?
var ErrorDiffusionOutputFilename = "dither_errordiffusion.png"
var ErrorDiffusionZoomLevels = []int{}
var FibonacciOutputFilename = "fibonacci.png"
var FibonacciZoomLevels = []int{}
var GopherOutputFilename = "gopher.png"
var GopherZoomLevels = []int{}
var GradientQuantizationOutputFilename = "gradient_quantize.png"
var GradientQuantizationZoomLevels = []int{}
var GrassCloseOutputFilename = "grass_close.png"
var GrassCloseZoomLevels = []int{}
var GrassOutputFilename = "grass.png"
var HeatmapOutputFilename = "heatmap.png"
var HeatmapZoomLevels = []int{}
var HexGridOutputFilename = "hex_grid.png"
var HorizontalLineOutputFilename = "horizontal_line.png"
var HorizontalLineZoomLevels = []int{} // Disabled as per feedback
var IslandsOutputFilename = "islands.png"
var KnollDitherOutputFilename = "dither_knoll.png"
var KnollDitherZoomLevels = []int{}
var LavaOutputFilename = "lava.png"
var LinearGradientOutputFilename = "linear_gradient.png"
var LinearGradientZoomLevels = []int{}
var MathsJuliaOutputFilename = "maths_julia.png"
var MathsJuliaZoomLevels = []int{}
var MathsMandelbrotOutputFilename = "maths_mandelbrot.png"
var MathsMandelbrotZoomLevels = []int{}
var MathsSineOutputFilename = "maths_sine.png"
var MathsSineZoomLevels = []int{}
var MathsWavesOutputFilename = "maths_waves.png"
var MathsWavesZoomLevels = []int{}
var MirrorOutputFilename = "mirror.png"
var MirrorZoomLevels = []int{}
var ModuloStripeOutputFilename = "modulo_stripe.png"
var ModuloStripeZoomLevels = []int{}
var MoleculesOutputFilename = "molecules.png"
var MudTracksOutputFilename = "mud_tracks.png"
var NoiseOutputFilename = "noise.png"
var NoiseZoomLevels = []int{} // Zooming is unnecessary for noise
var NullOutputFilename = "null.png"
var NullZoomLevels = []int{}
var OrderedDitherOutputFilename = "dither_ordered.png"
var OrderedDitherZoomLevels = []int{}
var PCBTracesOutputFilename = "pcbtraces.png"
PCBTracesOutputFilename is the default output filename for the PCBTraces pattern.
var PCBTracesZoomLevels = []int{}
PCBTracesZoomLevels is the default zoom levels for the PCBTraces pattern.
var PaletteCGA = color.Palette{ color.RGBA{0x00, 0x00, 0x00, 0xff}, color.RGBA{0xff, 0x55, 0xff, 0xff}, color.RGBA{0x55, 0xff, 0xff, 0xff}, color.RGBA{0xff, 0xff, 0xff, 0xff}, }
PaletteCGA is the CGA Palette 1 High Intensity
var PebblesOutputFilename = "pebbles.png"
var PlasmaOutputFilename = "plasma.png"
var PlasmaZoomLevels = []int{}
var PolkaOutputFilename = "polka.png"
var QuantizeOutputFilename = "quantize.png"
var QuantizeZoomLevels = []int{}
var RadialGradientOutputFilename = "radial_gradient.png"
var RadialGradientZoomLevels = []int{}
var RectOutputFilename = "rect.png"
var RectZoomLevels = []int{}
var RotateOutputFilename = "rotate.png"
var RotateZoomLevels = []int{}
var ScalesOutputFilename = "scales.png"
var ScreenToneOutputFilename = "screentone.png"
var SierpinskiCarpetOutputFilename = "sierpinski_carpet.png"
var SierpinskiCarpetZoomLevels = []int{}
var SierpinskiTriangleOutputFilename = "sierpinski_triangle.png"
var SierpinskiTriangleZoomLevels = []int{}
var SimpleZoomOutputFilename = "simplezoom.png"
var SimpleZoomZoomLevels = []int{2, 4}
var (
SlateOutputFilename = "slate.png"
)
var SpeedLinesOutputFilename = "speedlines.png"
var SpeedLinesZoomLevels = []int{}
var StarfieldOutputFilename = "starfield.png"
var StonesOutputFilename = "stones.png"
var SubpixelLinesOutputFilename = "subpixel_lines.png"
var SubpixelLinesZoomLevels = []int{}
var TransposedOutputFilename = "transposed.png"
var TransposedZoomLevels = []int{2, 4}
var VHSOutputFilename = "vhs.png"
var VHSZoomLevels = []int{}
var VerticalLineOutputFilename = "vertical_line.png"
var VerticalLineZoomLevels = []int{}
var VoronoiOutputFilename = "voronoi.png"
var VoronoiTilesOutputFilename = "voronoi_tiles.png"
var VoronoiTilesZoomLevels = []int{}
var VoronoiZoomLevels = []int{}
var WindRidgesOutputFilename = "wind.png"
var Windows16 = color.Palette{ color.RGBA{0x00, 0x00, 0x00, 0xff}, color.RGBA{0x80, 0x00, 0x00, 0xff}, color.RGBA{0x00, 0x80, 0x00, 0xff}, color.RGBA{0x80, 0x80, 0x00, 0xff}, color.RGBA{0x00, 0x00, 0x80, 0xff}, color.RGBA{0x80, 0x00, 0x80, 0xff}, color.RGBA{0x00, 0x80, 0x80, 0xff}, color.RGBA{0xc0, 0xc0, 0xc0, 0xff}, color.RGBA{0x80, 0x80, 0x80, 0xff}, color.RGBA{0xff, 0x00, 0x00, 0xff}, color.RGBA{0x00, 0xff, 0x00, 0xff}, color.RGBA{0xff, 0xff, 0x00, 0xff}, color.RGBA{0x00, 0x00, 0xff, 0xff}, color.RGBA{0xff, 0x00, 0xff, 0xff}, color.RGBA{0x00, 0xff, 0xff, 0xff}, color.RGBA{0xff, 0xff, 0xff, 0xff}, }
var WindowsDither4x4OutputFilename = "dither_windows_4x4.png"
var WindowsDither4x4ZoomLevels = []int{}
var WindowsDitherHalftoneOutputFilename = "dither_windows_halftone.png"
var WindowsDitherHalftoneZoomLevels = []int{}
var WindowsDitherOutputFilename = "dither_windows.png"
var WindowsDitherZoomLevels = []int{}
var WorleyNoiseOutputFilename = "worley.png"
var WorleyNoiseZoomLevels = []int{}
var XorGridOutputFilename = "xor_pattern.png"
var XorGridZoomLevels = []int{}
var Yliluoma1DitherOutputFilename = "dither_yliluoma1.png"
var Yliluoma1DitherZoomLevels = []int{}
var Yliluoma2DitherOutputFilename = "dither_yliluoma2.png"
var Yliluoma2DitherZoomLevels = []int{}
Functions ¶
func AOFromHeight ¶ added in v0.0.6
AOFromHeight is a utility function that wraps NewAmbientOcclusion to creates an ambient occlusion map from a height map with the given radius.
func AmbientOcclusionRadius ¶ added in v0.0.6
func BootstrapGridReferences ¶ added in v0.0.2
func BootstrapGridUnboundedReferences ¶ added in v0.0.2
func BootstrapPaddingReferences ¶ added in v0.0.2
func BootstrapTileReferences ¶ added in v0.0.2
func ConcentricWaterAmplitude ¶ added in v0.0.6
ConcentricWaterAmplitude sets the sine wave amplitude.
func ConcentricWaterAmplitudeFalloff ¶ added in v0.0.6
ConcentricWaterAmplitudeFalloff controls how quickly the ripple amplitude decays with distance.
func ConcentricWaterBaseTint ¶ added in v0.0.6
ConcentricWaterBaseTint sets the base water color.
func ConcentricWaterLightDirection ¶ added in v0.0.6
ConcentricWaterLightDirection sets the light vector used for shading.
func ConcentricWaterNormalStrength ¶ added in v0.0.6
ConcentricWaterNormalStrength sets the slope scaling used for normal estimation.
func ConcentricWaterRingSpacing ¶ added in v0.0.6
ConcentricWaterRingSpacing sets the spacing between ripples.
func CurvatureFromHeight ¶ added in v0.0.6
CurvatureFromHeight is a utility function that wraps NewCurvature to creates a curvature map from a height map.
func DefaultPredicate ¶ added in v0.0.2
Default predicate
func ExampleMaterial_basic ¶ added in v0.0.6
func ExampleMaterial_basic()
func ExampleNewAbstractArt ¶ added in v0.0.6
Abstract Art: Renamed from Crystal (Original implementation)
func ExampleNewAmbientOcclusion ¶ added in v0.0.6
func ExampleNewAmbientOcclusion()
func ExampleNewBayer2x2Dither ¶ added in v0.0.2
func ExampleNewBayer2x2Dither()
Bayer2x2Dither Pattern Example of applying a 2x2 Bayer ordered dither.
func ExampleNewBayerDither ¶ added in v0.0.2
func ExampleNewBayerDither()
func ExampleNewBitwiseAnd ¶ added in v0.0.2
func ExampleNewBitwiseAnd()
func ExampleNewBlueNoise ¶ added in v0.0.2
func ExampleNewBlueNoise()
func ExampleNewBooleanAnd ¶ added in v0.0.2
func ExampleNewBooleanAnd()
func ExampleNewBooleanModes ¶ added in v0.0.6
func ExampleNewBooleanModes()
ExampleNewBooleanModes is a placeholder for documentation.
func ExampleNewBooleanNot ¶ added in v0.0.2
func ExampleNewBooleanNot()
func ExampleNewBooleanOr ¶ added in v0.0.2
func ExampleNewBooleanOr()
func ExampleNewBooleanXor ¶ added in v0.0.2
func ExampleNewBooleanXor()
func ExampleNewBrick ¶ added in v0.0.3
ExampleNewBrick creates a basic brick pattern. Output:
func ExampleNewBrick_stone ¶ added in v0.0.3
ExampleNewBrick_stone demonstrates a stone-like wall using grey colors and size variations.
func ExampleNewBrick_textures ¶ added in v0.0.3
ExampleNewBrick_textures demonstrates using different textures for bricks and mortar.
func ExampleNewBuffer ¶ added in v0.0.6
func ExampleNewBuffer()
Buffer Pattern A pattern that buffers a source image.
func ExampleNewCamouflage ¶ added in v0.0.4
func ExampleNewCamouflage()
func ExampleNewCandy ¶ added in v0.0.3
func ExampleNewCandy()
Candy Example (M&Ms / Smarties) Demonstrates using the Scatter pattern to draw overlapping, colored candy circles.
func ExampleNewCarpet ¶ added in v0.0.6
Carpet: Visual interest increased
func ExampleNewCells ¶ added in v0.0.3
func ExampleNewCells()
Cells Example (Biological) Demonstrates using Worley Noise to create a biological cell structure (e.g., plant cells).
func ExampleNewChecker ¶
func ExampleNewChecker()
Checker Pattern Alternates between two colors in a checkerboard fashion.
func ExampleNewCheckerBorder ¶ added in v0.0.6
Checker Border: Classic black/white border strip
func ExampleNewChippedBrick ¶ added in v0.0.6
ExampleNewChippedBrick provides a sample for documentation use.
func ExampleNewCircle ¶ added in v0.0.2
func ExampleNewCircle()
func ExampleNewCircuit ¶ added in v0.0.6
func ExampleNewClouds ¶ added in v0.0.4
ExampleNewClouds generates a generic cloud pattern.
func ExampleNewClouds_cirrus ¶ added in v0.0.4
ExampleNewClouds_cirrus generates wispy, high-altitude cirrus clouds.
func ExampleNewClouds_cumulus ¶ added in v0.0.4
ExampleNewClouds_cumulus generates fluffy, white cumulus clouds on a blue sky. It uses Perlin noise with a specific color map that has a sharp transition from blue to white to simulate the defined edges of cumulus clouds.
func ExampleNewClouds_storm ¶ added in v0.0.4
ExampleNewClouds_storm generates dark, turbulent storm clouds. It blends multiple layers of noise to create depth and complexity.
func ExampleNewClouds_sunset ¶ added in v0.0.4
ExampleNewClouds_sunset generates clouds illuminated by a setting sun. It uses a linear gradient for the sky background and Perlin noise for the clouds, blending them to simulate under-lighting.
func ExampleNewColorMap ¶ added in v0.0.2
func ExampleNewColorMap()
ColorMap Pattern Maps the luminance of a source pattern to a color gradient (ramp). This is useful for creating textures like grass, dirt, clouds, or heatmaps.
func ExampleNewConcentricRings ¶ added in v0.0.2
func ExampleNewConcentricRings()
func ExampleNewConcentricWater ¶ added in v0.0.6
ExampleNewConcentricWater demonstrates concentric distance-field ripples with sine-driven heights that tint and bend the normals of the surface.
func ExampleNewConicGradient ¶ added in v0.0.2
func ExampleNewConicGradient()
func ExampleNewCrackedMud ¶ added in v0.0.3
func ExampleNewCrackedMud()
Cracked Mud Example Demonstrates using Worley Noise (F2-F1) to create cracked earth.
func ExampleNewCrossHatch ¶ added in v0.0.2
func ExampleNewCrossHatch()
func ExampleNewCurvature ¶ added in v0.0.6
func ExampleNewCurvature()
func ExampleNewDamascus ¶ added in v0.0.4
func ExampleNewDamascus()
func ExampleNewDirt ¶ added in v0.0.5
func ExampleNewDirt_mud ¶ added in v0.0.5
func ExampleNewDitherColorReduction ¶ added in v0.0.3
ExampleNewDitherColorReduction demonstrates color reduction capabilities using various palettes.
func ExampleNewDitherStages ¶ added in v0.0.3
ExampleNewDitherStages demonstrates the progression of dithering techniques on a linear gradient, illustrating the "stages" or levels of detail each matrix provides.
func ExampleNewDungeon ¶ added in v0.0.6
Dungeon: Stone brick + moss speckles + edge cracks
func ExampleNewEdgeDetect ¶ added in v0.0.2
func ExampleNewEdgeDetect()
EdgeDetect Pattern Applies Sobel edge detection to an input image.
func ExampleNewErrorDiffusion ¶ added in v0.0.2
func ExampleNewErrorDiffusion()
func ExampleNewFantasyFrame ¶ added in v0.0.6
We need to update ExampleNewFantasyFrame to use GenerateFantasyFrame or standard bounds
func ExampleNewFence ¶ added in v0.0.6
Fence: Diagonal diamond grid (Chain link)
func ExampleNewFibonacci ¶ added in v0.0.2
func ExampleNewFibonacci()
func ExampleNewFineGrid ¶ added in v0.0.6
func ExampleNewFineGrid()
ExampleNewFineGrid renders a neon grid with glow and saves it to fine_grid.png.
func ExampleNewFloor ¶ added in v0.0.5
func ExampleNewFog ¶ added in v0.0.6
ExampleNewFog renders soft Perlin/fBm fog with a radial falloff so the center stays clearer.
func ExampleNewGlobe ¶ added in v0.0.4
func ExampleNewGlobe()
ExampleNewGlobe is the default example for the documentation.
func ExampleNewGlobe_Grid ¶ added in v0.0.4
func ExampleNewGlobe_Grid()
ExampleNewGlobe_Grid demonstrates the wireframe/grid mode of the Globe pattern.
func ExampleNewGlobe_Projected ¶ added in v0.0.4
func ExampleNewGlobe_Projected()
ExampleNewGlobe_Projected demonstrates the true "Globe" pattern with spherical projection. It maps the same texture onto a sphere.
func ExampleNewGlobe_Simple ¶ added in v0.0.4
func ExampleNewGlobe_Simple()
ExampleNewGlobe_Simple demonstrates the "Circle and Texture" technique requested. It uses a flat circular mask over a terrain texture.
func ExampleNewGlyphRing ¶ added in v0.0.6
func ExampleNewGlyphRing()
ExampleNewGlyphRing produces a demo PNG for documentation.
func ExampleNewGopher ¶ added in v0.0.2
func ExampleNewGopher()
Gopher Pattern A static image of the Go Gopher.
func ExampleNewGradientQuantization ¶ added in v0.0.2
func ExampleNewGradientQuantization()
func ExampleNewGrass ¶ added in v0.0.3
func ExampleNewGrass()
Grass Example Demonstrates using Perlin Noise with ColorMap to create a simple grass texture.
func ExampleNewGrassClose ¶ added in v0.0.3
func ExampleNewGrassClose()
Grass Close Example Demonstrates a procedural grass texture using the GrassClose pattern composed with Noise.
func ExampleNewGrid ¶ added in v0.0.2
func ExampleNewGridUnbounded ¶ added in v0.0.2
func ExampleNewHeatmap ¶ added in v0.0.2
func ExampleNewHeatmap()
Heatmap Generates a heatmap for the function z = sin(x) * cos(y).
func ExampleNewHexGrid ¶ added in v0.0.6
func ExampleNewHexGrid()
HexGrid example: alternating palette across axial coordinates with a subtle bevel.
func ExampleNewHorizontalLine ¶ added in v0.0.2
func ExampleNewHorizontalLine()
func ExampleNewIce ¶ added in v0.0.6
Ice: Pale base + thin cracks + faint gradient
func ExampleNewIslands ¶ added in v0.0.3
func ExampleNewIslands()
Islands Example Demonstrates composing patterns using Blend to create a realistic island terrain.
func ExampleNewKnollDither ¶ added in v0.0.3
func ExampleNewLava ¶ added in v0.0.4
func ExampleNewLava()
func ExampleNewLavaFlow ¶ added in v0.0.6
Lava Flow: Dark base + bright streaks + subtle noise
func ExampleNewLinearGradient ¶ added in v0.0.2
func ExampleNewLinearGradient()
func ExampleNewMathsJulia ¶ added in v0.0.2
func ExampleNewMathsJulia()
Julia Set Generates a Julia set visualization.
func ExampleNewMathsMandelbrot ¶ added in v0.0.2
func ExampleNewMathsMandelbrot()
Mandelbrot Set Generates a Mandelbrot set visualization.
func ExampleNewMathsSine ¶ added in v0.0.2
func ExampleNewMathsSine()
Sine Waves Generates a sine wave pattern.
func ExampleNewMathsWaves ¶ added in v0.0.2
func ExampleNewMathsWaves()
Interference Waves Generates an interference pattern from multiple sine waves.
func ExampleNewMetal ¶ added in v0.0.5
func ExampleNewMetalPlate ¶ added in v0.0.6
Metal Plate: Improved texture (Brushed)
func ExampleNewMetal_scratched ¶ added in v0.0.5
func ExampleNewMirror ¶ added in v0.0.2
func ExampleNewMirror()
Mirror Pattern Mirrors the input pattern horizontally or vertically.
func ExampleNewModuloStripe ¶ added in v0.0.2
func ExampleNewModuloStripe()
func ExampleNewMolecules ¶ added in v0.0.3
func ExampleNewMolecules()
Molecules Example (formerly Stones) Demonstrates using Worley Noise to create an atomic/molecular structure.
func ExampleNewMudTracks ¶ added in v0.0.6
func ExampleNewMudTracks()
ExampleNewMudTracks lays down multiple compacted bands with embedded pebble noise.
func ExampleNewNoise ¶ added in v0.0.2
func ExampleNewNoise()
Noise Pattern Generates random noise using various algorithms (Crypto, Hash).
func ExampleNewNormalMap ¶ added in v0.0.5
func ExampleNewNormalMap_sphere ¶ added in v0.0.5
func ExampleNewNull ¶
func ExampleNewNull()
Null Pattern Returns a transparent color for all pixels.
func ExampleNewOrderedDither ¶ added in v0.0.2
func ExampleNewOrderedDither()
func ExampleNewPCBTraces ¶ added in v0.0.6
ExampleNewPCBTraces returns a sample PCB trace layout with default options.
func ExampleNewPadding ¶ added in v0.0.2
func ExampleNewPaintedPlanks ¶ added in v0.0.6
ExampleNewPaintedPlanks demonstrates segmented planks with grain noise per board and a chipped paint overlay.
func ExampleNewPebbles ¶ added in v0.0.3
func ExampleNewPebbles()
Pebbles Example (Chipped Stone / Gravel) Demonstrates using the Scatter pattern to create overlapping, irregular stones.
func ExampleNewPersianRug ¶ added in v0.0.6
func ExampleNewPixelCamo ¶ added in v0.0.6
Pixel Camo: Clustered 2x2 blocks in 3-4 colors
func ExampleNewPlasma ¶ added in v0.0.2
func ExampleNewPlasma()
func ExampleNewPolka ¶ added in v0.0.2
func ExampleNewPolka()
Polka Pattern A pattern of dots (circles) arranged in a grid.
func ExampleNewQuantize ¶ added in v0.0.2
func ExampleNewQuantize()
Quantize Pattern Example of quantizing the colors of an image (Posterization). This example reduces the Gopher image to 4 levels per channel.
func ExampleNewRadialGradient ¶ added in v0.0.2
func ExampleNewRadialGradient()
func ExampleNewRect ¶ added in v0.0.2
func ExampleNewRect()
Rect Pattern A pattern that draws a filled rectangle.
func ExampleNewRoad ¶ added in v0.0.5
func ExampleNewRoad_marked ¶ added in v0.0.5
func ExampleNewRoad_terrain ¶ added in v0.0.5
func ExampleNewRotate ¶ added in v0.0.2
func ExampleNewRotate()
Rotate Pattern Rotates the input pattern by 90, 180, or 270 degrees.
func ExampleNewSand ¶ added in v0.0.5
func ExampleNewSand_dunes ¶ added in v0.0.5
func ExampleNewSand_zoomed ¶ added in v0.0.5
func ExampleNewScales ¶ added in v0.0.3
func ExampleNewScales()
Scales Example Demonstrates using the Scales pattern to create Amazonian fish scales.
func ExampleNewScreenTone ¶ added in v0.0.2
func ExampleNewScreenTone()
ScreenTone Pattern A halftone dot matrix pattern with adjustable density (Spacing) and angle.
func ExampleNewShojo ¶ added in v0.0.2
func ExampleNewShojo()
ExampleNewShojo produces a demo variant for readme.md.
func ExampleNewShojo_blue ¶ added in v0.0.2
func ExampleNewShojo_blue()
ExampleNewShojo_blue demonstrates a blue variant.
func ExampleNewShojo_pink ¶ added in v0.0.2
func ExampleNewShojo_pink()
ExampleNewShojo_pink demonstrates a pink variant.
func ExampleNewSierpinskiCarpet ¶ added in v0.0.2
func ExampleNewSierpinskiCarpet()
Sierpinski Carpet Generates a Sierpinski Carpet fractal.
func ExampleNewSierpinskiTriangle ¶ added in v0.0.2
func ExampleNewSierpinskiTriangle()
Sierpinski Triangle Generates a Sierpinski Triangle fractal (right-angled variant using Pascal's Triangle modulo 2).
func ExampleNewSimpleZoom ¶
func ExampleNewSimpleZoom()
SimpleZoom Pattern Scales an input pattern by a factor.
func ExampleNewSlate ¶ added in v0.0.5
func ExampleNewSnow ¶ added in v0.0.5
func ExampleNewSnow_tracks ¶ added in v0.0.5
func ExampleNewSpeedLines ¶ added in v0.0.2
func ExampleNewSpeedLines()
SpeedLines Pattern Basic radial speed lines.
func ExampleNewStarfield ¶ added in v0.0.4
func ExampleNewStarfield()
func ExampleNewStone ¶ added in v0.0.5
func ExampleNewStone_cobble ¶ added in v0.0.5
func ExampleNewStones ¶ added in v0.0.3
func ExampleNewStones()
Stones Example (Riverbed / Cobblestones) Demonstrates using Worley Noise (F2-F1) to create smooth stones with mortar.
func ExampleNewStripe ¶ added in v0.0.6
Warning Stripe: Diagonal alternating yellow/black
func ExampleNewSubpixelLines ¶ added in v0.0.6
func ExampleNewSubpixelLines()
Subpixel lines with per-channel offset and vignette.
func ExampleNewThreadBands ¶ added in v0.0.6
func ExampleNewThreadBands()
func ExampleNewTile ¶ added in v0.0.2
func ExampleNewTransposed ¶
func ExampleNewTransposed()
Transposed Pattern Transposes the coordinates of an input pattern.
func ExampleNewVHS ¶ added in v0.0.2
func ExampleNewVHS()
Retro VHS Effect Demonstrates the VHS scanline, color shift, and noise effect.
func ExampleNewVerticalLine ¶ added in v0.0.2
func ExampleNewVerticalLine()
func ExampleNewVoronoi ¶ added in v0.0.2
func ExampleNewVoronoi()
Voronoi Pattern Generates Voronoi cells.
func ExampleNewVoronoiTiles ¶ added in v0.0.6
func ExampleNewVoronoiTiles()
Voronoi Tiles Uses Voronoi cells to define tiles, raises the centers, darkens the gaps, and sprinkles dust noise.
func ExampleNewWarp ¶ added in v0.0.3
func ExampleNewWarp()
func ExampleNewWarp_clouds ¶ added in v0.0.3
func ExampleNewWarp_marble ¶ added in v0.0.3
func ExampleNewWarp_terrain ¶ added in v0.0.3
func ExampleNewWarp_wood ¶ added in v0.0.3
func ExampleNewWater ¶ added in v0.0.5
func ExampleNewWater_surface ¶ added in v0.0.5
func ExampleNewWaveBorder ¶ added in v0.0.6
Wave Border: Repeating sinusoidal edge
func ExampleNewWindRidges ¶ added in v0.0.6
func ExampleNewWindRidges()
ExampleNewWindRidges writes a wind-swept noise PNG showcasing parameterized streaks.
func ExampleNewWindowsDither ¶ added in v0.0.3
ExampleNewWindowsDither demonstrates the classic Windows 16-color dithering using standard Bayer ordered dithering (comparable to what the user requested). This uses a 4x4 matrix which was common, or 8x8. The user linked article discusses standard ordered dithering with Bayer matrix.
func ExampleNewWindowsDither4x4 ¶ added in v0.0.3
ExampleNewWindowsDither4x4 demonstrates 4x4 variant.
func ExampleNewWindowsDitherHalftone ¶ added in v0.0.3
ExampleNewWindowsDitherHalftone uses a halftone pattern.
func ExampleNewWood ¶ added in v0.0.3
ExampleNewWood demonstrates a procedural wood texture using domain warping on a distance field.
func ExampleNewWorleyNoise ¶ added in v0.0.3
func ExampleNewWorleyNoise()
WorleyNoise Pattern Generates Worley (cellular) noise.
func ExampleNewWorleyTiles ¶ added in v0.0.6
ExampleNewWorleyTiles tiles Worley/Voronoi stones with rounded edges and mortar. Parameters:
- stone size (pixels): SetTileStoneSize
- gap width (0-1): SetTileGapWidth
- color palette spread (0-1): SetTilePaletteSpread
func ExampleNewXorGrid ¶ added in v0.0.2
func ExampleNewXorGrid()
func ExampleNewYliluoma1Dither ¶ added in v0.0.3
func ExampleNewYliluoma2Dither ¶ added in v0.0.3
func ExampleRect_blue ¶ added in v0.0.2
func ExampleRect_blue()
func ExampleRect_border_demo ¶ added in v0.0.2
func ExampleRect_border_demo()
func ExampleRect_bounded ¶ added in v0.0.2
func ExampleRect_bounded()
func ExampleRect_image_stroke ¶ added in v0.0.2
func ExampleRect_image_stroke()
func ExampleRect_stroked ¶ added in v0.0.2
func ExampleRect_stroked()
func ExampleSpeedLines_GopherBurst ¶ added in v0.0.2
func ExampleSpeedLines_GopherBurst()
ExampleSpeedLines_GopherBurst shows speed lines coming out of the Gopher's mouth.
func GenerateAbstractArt ¶ added in v0.0.6
func GenerateAmbientOcclusion ¶ added in v0.0.6
func GenerateBayer2x2Dither ¶ added in v0.0.2
func GenerateBayer2x2DitherReferences ¶ added in v0.0.2
func GenerateBayerDitherReferences ¶ added in v0.0.2
func GenerateBayerInt ¶ added in v0.0.3
func GenerateBitwiseAndReferences ¶ added in v0.0.2
func GenerateBlueNoiseReferences ¶ added in v0.0.2
func GenerateBooleanAndReferences ¶ added in v0.0.2
func GenerateBooleanModes ¶ added in v0.0.6
func GenerateBooleanModesReferences ¶ added in v0.0.6
func GenerateBooleanNotReferences ¶ added in v0.0.2
func GenerateBooleanOrReferences ¶ added in v0.0.2
func GenerateBooleanXorReferences ¶ added in v0.0.2
func GenerateBrickReferences ¶ added in v0.0.3
func GenerateBuffer ¶ added in v0.0.6
GenerateBuffer creates a buffer pattern for the gallery.
func GenerateCheckerBorder ¶ added in v0.0.6
func GenerateChippedBrick ¶ added in v0.0.6
GenerateChippedBrick builds a chipped brick wall example with hue variation and recessed mortar.
func GenerateCircleReferences ¶ added in v0.0.2
func GenerateCircuitImpl ¶ added in v0.0.6
Circuit: Thin orthogonal traces with small nodes (Redesigned from foundations)
func GenerateCloudsReferences ¶ added in v0.0.4
func GenerateCloudsReferences_Empty ¶ added in v0.0.4
func GenerateClouds_cirrus ¶ added in v0.0.4
func GenerateClouds_cumulus ¶ added in v0.0.4
func GenerateClouds_storm ¶ added in v0.0.4
func GenerateClouds_sunset ¶ added in v0.0.4
func GenerateColorMapReferences ¶ added in v0.0.2
func GenerateConcentricRings ¶ added in v0.0.2
func GenerateConcentricRingsReferences ¶ added in v0.0.2
func GenerateConcentricWater ¶ added in v0.0.6
func GenerateConcentricWaterReferences ¶ added in v0.0.6
func GenerateConicGradient ¶ added in v0.0.2
func GenerateCrossHatchReferences ¶ added in v0.0.2
func GenerateDitherColorReduction ¶ added in v0.0.3
func GenerateDitherColorReductionReferences ¶ added in v0.0.3
func GenerateDitherColorReductionReferences() (map[string]func(image.Rectangle) image.Image, []string)
GenerateDitherColorReductionReferences generates examples of color reduction.
func GenerateDitherStages ¶ added in v0.0.3
GenerateDitherStages is the generator function for the main example image.
func GenerateDitherStagesReferences ¶ added in v0.0.3
GenerateDitherStagesReferences generates a comprehensive set of dithering examples using a gradient source to visualize the patterns.
func GenerateEarthTexture ¶ added in v0.0.4
GenerateEarthTexture creates a simple earth-like texture map
func GenerateEdgeDetectReferences ¶ added in v0.0.2
func GenerateErrorDiffusion ¶ added in v0.0.2
func GenerateErrorDiffusionReferences ¶ added in v0.0.2
func GenerateFantasyFrame ¶ added in v0.0.6
Fantasy Frame: Ornate (Fixed Bounds)
func GenerateFibonacciReferences ¶ added in v0.0.2
func GenerateFineGrid ¶ added in v0.0.6
GenerateFineGrid returns a preconfigured fine grid for the registry and CLI.
func GenerateFineGridMagenta ¶ added in v0.0.6
GenerateFineGridMagenta variant showcases a denser grid and different hue.
func GenerateFineGridReferences ¶ added in v0.0.6
func GenerateFineGridWarm ¶ added in v0.0.6
GenerateFineGridWarm variant showcases hue customization.
func GenerateFogReferences ¶ added in v0.0.6
func GenerateGlobe_Projected ¶ added in v0.0.4
func GenerateGlobe_Simple ¶ added in v0.0.4
func GenerateGlyphRing ¶ added in v0.0.6
GenerateGlyphRing renders the circular glyph band pattern.
func GenerateGlyphRingReferences ¶ added in v0.0.6
GenerateGlyphRingReferences returns no additional reference patterns.
func GenerateGopherReferences ¶ added in v0.0.2
func GenerateGradientQuantization ¶ added in v0.0.2
func GenerateGradientQuantizationReferences ¶ added in v0.0.2
func GenerateGrassCloseReferences ¶ added in v0.0.3
func GenerateHorizontalLine ¶ added in v0.0.2
func GenerateLinearGradient ¶ added in v0.0.2
func GenerateLinearGradientReferences ¶ added in v0.0.2
func GenerateMathsMandelbrot ¶ added in v0.0.2
func GenerateMetal_scratched ¶ added in v0.0.5
func GenerateMirrorReferences ¶ added in v0.0.2
func GenerateModuloStripe ¶ added in v0.0.2
func GenerateModuloStripeReferences ¶ added in v0.0.2
func GenerateMudTracks ¶ added in v0.0.6
GenerateMudTracks builds the pattern for registry-driven generation.
func GenerateNoiseReferences ¶ added in v0.0.2
func GenerateNormalMap ¶ added in v0.0.5
Generators need to match func(image.Rectangle) image.Image signature
func GenerateNormalMap_sphere ¶ added in v0.0.5
func GenerateOrderedDither ¶ added in v0.0.2
func GenerateOrderedDitherReferences ¶ added in v0.0.2
func GeneratePCBTraces ¶ added in v0.0.6
GeneratePCBTraces creates a PCB trace layout in the provided bounds.
func GeneratePaintedPlanks ¶ added in v0.0.6
func GeneratePaintedPlanksReferences ¶ added in v0.0.6
func GeneratePersianRugImpl ¶ added in v0.0.6
Persian Rug: Ornate patterns (Redesigned + Internals Improved)
func GeneratePlasmaReferences ¶ added in v0.0.2
func GenerateQuantizeReferences ¶ added in v0.0.2
func GenerateRadialGradient ¶ added in v0.0.2
func GenerateRectReferences ¶ added in v0.0.2
func GenerateRoad_marked ¶ added in v0.0.5
func GenerateRoad_terrain ¶ added in v0.0.5
func GenerateRotateReferences ¶ added in v0.0.2
func GenerateSand_zoomed ¶ added in v0.0.5
func GenerateShojo ¶ added in v0.0.2
GenerateShojo generates a Shojo Sparkles pattern.
func GenerateShojoReferences ¶ added in v0.0.2
GenerateShojoReferences generates reference images for the Shojo Sparkles pattern.
func GenerateSierpinskiCarpet ¶ added in v0.0.2
func GenerateSierpinskiTriangle ¶ added in v0.0.2
func GenerateSnow_tracks ¶ added in v0.0.5
func GenerateSpeedLinesReferences ¶ added in v0.0.2
func GenerateStone_cobble ¶ added in v0.0.5
func GenerateSubpixelLines ¶ added in v0.0.6
func GenerateThreadBands ¶ added in v0.0.6
func GenerateThreadBandsReferences ¶ added in v0.0.6
func GenerateTransposedReferences ¶ added in v0.0.2
func GenerateVerticalLine ¶ added in v0.0.2
func GenerateVoronoiTiles ¶ added in v0.0.6
func GenerateWarpReferences ¶ added in v0.0.3
GenerateWarpReferences registers the examples for documentation generation (for the main Warp pattern references if needed).
func GenerateWarpReferences_Empty ¶ added in v0.0.3
func GenerateWarp_clouds ¶ added in v0.0.3
func GenerateWarp_marble ¶ added in v0.0.3
func GenerateWarp_terrain ¶ added in v0.0.3
func GenerateWater_surface ¶ added in v0.0.5
func GenerateWindRidges ¶ added in v0.0.6
GenerateWindRidges builds a directional streaked noise with soft shadow ridges.
func GenerateWindRidgesReferences ¶ added in v0.0.6
GenerateWindRidgesReferences returns variations focusing on the key tunables.
func GenerateWindowsDither ¶ added in v0.0.3
func GenerateWindowsDither4x4 ¶ added in v0.0.3
func GenerateWindowsDitherHalftone ¶ added in v0.0.3
func GenerateWindowsDitherReferences ¶ added in v0.0.4
func GenerateWoodReferences ¶ added in v0.0.3
func GenerateWorleyNoiseReferences ¶ added in v0.0.3
func GenerateWorleyTiles ¶ added in v0.0.6
GenerateWorleyTiles wires the example into the registry for bootstrapping.
func GenerateXorGridReferences ¶ added in v0.0.2
func GenerateYliluoma1Dither ¶ added in v0.0.3
func GenerateYliluoma2Dither ¶ added in v0.0.3
func GradientCenter ¶ added in v0.0.5
GradientCenter sets the center of the gradient (normalized 0..1).
func GradientVertical ¶ added in v0.0.2
func GradientVertical() func(any)
Option to set direction to vertical
func HeightToNormal ¶ added in v0.0.6
HeightToNormal is a utility function that wraps NewNormalMap to creates a normal map from a height map with the given strength.
func NewAligned ¶ added in v0.0.2
func NewAligned(img image.Image, width, height int, xAlign, yAlign float64, bg image.Image, padding ...int) image.Image
NewAligned returns an image padded to the specified width and height, with the inner image aligned according to xAlign and yAlign (0.0 to 1.0). 0.0 means Top/Left, 0.5 means Center, 1.0 means Bottom/Right. Optional padding arguments can be provided (following CSS standards): 1 arg: All sides 2 args: Vertical, Horizontal 4 args: Top, Right, Bottom, Left
func NewAmbientOcclusion ¶ added in v0.0.6
func NewBayer2x2Dither ¶ added in v0.0.2
NewBayer2x2Dither is a convenience function.
func NewBayer4x4Dither ¶ added in v0.0.2
NewBayer4x4Dither is a convenience function.
func NewBayer8x8Dither ¶ added in v0.0.2
NewBayer8x8Dither is a convenience function.
func NewBayerDither ¶ added in v0.0.2
NewBayerDither creates a new BayerDither pattern.
func NewBitwiseAnd ¶ added in v0.0.2
NewBitwiseAnd creates a new Bitwise And pattern.
func NewBitwiseNot ¶ added in v0.0.2
NewBitwiseNot creates a new Bitwise Not pattern.
func NewBitwiseOr ¶ added in v0.0.2
NewBitwiseOr creates a new Bitwise Or pattern.
func NewBitwiseXor ¶ added in v0.0.2
NewBitwiseXor creates a new Bitwise Xor pattern.
func NewBlueNoise ¶ added in v0.0.2
NewBlueNoise creates a new BlueNoise pattern.
func NewBlueNoiseDither ¶ added in v0.0.2
NewBlueNoiseDither creates a blue noise dither pattern. Uses a generated 16x16 Blue Noise mask.
func NewChecker ¶
NewChecker creates a new Checker with the given colors and square size.
func NewChippedBrick ¶ added in v0.0.6
NewChippedBrick creates a weathered brick wall.
func NewChunkyBands ¶ added in v0.0.6
NewChunkyBands creates a new ChunkyBands pattern.
func NewColorMap ¶ added in v0.0.2
NewColorMap creates a new ColorMap pattern. It sorts the stops by position.
func NewConcentricRings ¶ added in v0.0.2
NewConcentricRings creates a new ConcentricRings pattern.
func NewConcentricWater ¶ added in v0.0.6
NewConcentricWater creates a concentric ripple height field rendered with water tinting.
func NewConicGradient ¶ added in v0.0.2
NewConicGradient creates a new ConicGradient pattern.
func NewCrossHatch ¶ added in v0.0.2
NewCrossHatch creates a new CrossHatch pattern.
func NewCurvature ¶ added in v0.0.6
func NewDemoAnd ¶ added in v0.0.2
func NewDemoChecker ¶
NewDemoChecker produces a demo variant for readme.md pre-populated values
func NewDemoChunkyBands ¶ added in v0.0.6
NewDemoChunkyBands produces a demo variant for readme.md pre-populated values.
func NewDemoCircle ¶ added in v0.0.2
NewDemoCircle produces a demo variant for readme.md pre-populated values
func NewDemoCrossHatch ¶ added in v0.0.2
NewDemoCrossHatch produces a demo variant for readme.md pre-populated values
func NewDemoEdgeDetect ¶ added in v0.0.2
NewDemoEdgeDetect produces a demo variant for readme.md
func NewDemoErrorDiffusion ¶ added in v0.0.2
func NewDemoFibonacci ¶ added in v0.0.2
NewDemoFibonacci produces a demo variant for readme.md pre-populated values
func NewDemoFineGrid ¶ added in v0.0.6
NewDemoFineGrid produces a demo variant for readme.md pre-populated values.
func NewDemoGlyphRing ¶ added in v0.0.6
NewDemoGlyphRing produces a demo variant for readme.md pre-populated values.
func NewDemoGridAdvanced ¶ added in v0.0.2
func NewDemoGridBounded ¶ added in v0.0.2
func NewDemoGridColumns ¶ added in v0.0.2
func NewDemoGridFixed ¶ added in v0.0.2
func NewDemoGridFlexible ¶ added in v0.0.2
func NewDemoGridRows ¶ added in v0.0.2
func NewDemoHorizontalLine ¶ added in v0.0.2
NewDemoHorizontalLine produces a demo variant for readme.md pre-populated values
func NewDemoNot ¶ added in v0.0.2
func NewDemoNull ¶
NewDemoNull produces a demo variant for readme.md pre-populated values
func NewDemoOrderedDither ¶ added in v0.0.2
func NewDemoPaddingAlignedWithOffset ¶ added in v0.0.2
func NewDemoPaddingBottomRight ¶ added in v0.0.2
func NewDemoPaddingBounded ¶ added in v0.0.2
func NewDemoPaddingCentered ¶ added in v0.0.2
func NewDemoPaddingColor ¶ added in v0.0.2
func NewDemoPaddingRight ¶ added in v0.0.2
func NewDemoPaddingTopLeft ¶ added in v0.0.2
func NewDemoPolka ¶ added in v0.0.2
NewDemoPolka produces a demo variant for readme.md pre-populated values
func NewDemoRect ¶ added in v0.0.2
NewDemoRect produces a demo variant for readme.md pre-populated values
func NewDemoSimpleZoom ¶
NewDemoSimpleZoom produces a demo variant for readme.md pre-populated values
func NewDemoSubpixelLines ¶ added in v0.0.6
NewDemoSubpixelLines produces a demo variant for readme.md pre-populated values.
func NewDemoThreadBands ¶ added in v0.0.6
NewDemoThreadBands produces a demo variant for readme.md pre-populated values.
func NewDemoTransposed ¶
NewDemoTransposed produces a demo variant for readme.md pre-populated values
func NewDemoVerticalLine ¶ added in v0.0.2
NewDemoVerticalLine produces a demo variant for readme.md pre-populated values
func NewDemoVoronoi ¶ added in v0.0.2
NewDemoVoronoi produces a demo variant for readme.md pre-populated values.
func NewDemoXor ¶ added in v0.0.2
func NewEdgeDetect ¶ added in v0.0.2
NewEdgeDetect creates a new EdgeDetect pattern from an existing image.
func NewErrorDiffusion ¶ added in v0.0.2
func NewErrorDiffusion(img image.Image, kernel DiffusionKernel, p color.Palette, ops ...func(any)) image.Image
NewErrorDiffusion creates a new ErrorDiffusion pattern. If palette is nil, it defaults to Black and White (1-bit). Supports SetSerpentine(bool) and SetGamma(float64) options.
func NewFibonacci ¶ added in v0.0.2
NewFibonacci creates a new Fibonacci pattern.
func NewFineGrid ¶ added in v0.0.6
NewFineGrid builds a grid with glow and chromatic aberration.
func NewGlyphRing ¶ added in v0.0.6
NewGlyphRing constructs a GlyphRing with optional configuration.
func NewGoLogo ¶ added in v0.0.2
NewGoLogo returns an image of the Go Logo (or a Gopher related image).
func NewGopher ¶ added in v0.0.2
NewGopher returns an image of the Go Gopher. If the embedded asset cannot be decoded, it panics (should not happen in production).
func NewGrassClose ¶ added in v0.0.3
NewGrassClose creates a new GrassClose pattern.
func NewHalftoneDither ¶ added in v0.0.2
func NewHalftoneDither(img image.Image, size int, palette color.Palette, ops ...func(any)) image.Image
NewHalftoneDither creates a halftone dither effect using a clustered dot matrix. size determines the grid size of the dots (e.g. 8x8).
func NewHeatmap ¶ added in v0.0.2
func NewHeatmap(f HeatmapFunc, ops ...func(any)) image.Image
NewHeatmap creates a new Heatmap pattern.
func NewHexGrid ¶ added in v0.0.6
NewHexGrid creates a new HexGrid pattern.
func NewHorizontalLine ¶ added in v0.0.2
NewHorizontalLine creates a new HorizontalLine pattern.
func NewKnollDither ¶ added in v0.0.3
NewKnollDither creates a new KnollDither pattern.
func NewLinearGradient ¶ added in v0.0.2
NewLinearGradient creates a new LinearGradient pattern.
func NewMirror ¶ added in v0.0.2
NewMirror creates a new Mirror from an existing image. horizontal: flips left-right vertical: flips top-bottom
func NewModuloStripe ¶ added in v0.0.2
NewModuloStripe creates a new ModuloStripe pattern.
func NewMultiScaleOrderedDither ¶ added in v0.0.2
func NewNormalMap ¶ added in v0.0.5
NewNormalMap creates a new NormalMap from a source image. Default Strength is 1.0.
func NewOrderedDither ¶ added in v0.0.2
func NewOrderedDither(img image.Image, matrix []float64, dim int, palette color.Palette, spread float64, ops ...func(any)) image.Image
NewOrderedDither creates a new OrderedDither pattern. matrix should be a square matrix flattened. dim is the width/height. values in matrix should be normalized 0..1. spread controls the intensity of dithering. If 0, it auto-calculates based on palette size.
func NewPCBTraces ¶ added in v0.0.6
NewPCBTraces builds the PCB trace pattern with configurable parameters.
func NewPadding ¶ added in v0.0.2
func NewPadding(img image.Image, opts ...PaddingOption) image.Image
func NewPaintedPlanks ¶ added in v0.0.6
NewPaintedPlanks creates a plank wall pattern with configurable wood grain and paint wear.
func NewPolka ¶ added in v0.0.2
NewPolka creates a new Polka pattern. Default Radius is 10. Default Spacing is 40. Default FillColor is Black. Default SpaceColor is White.
func NewQuantize ¶ added in v0.0.2
NewQuantize creates a new Quantize pattern. levels is the number of levels per channel. e.g. 2 means 2 levels (0 and 255).
func NewRadialGradient ¶ added in v0.0.2
NewRadialGradient creates a new RadialGradient pattern.
func NewRandomDither ¶ added in v0.0.2
func NewRandomDither(img image.Image, palette color.Palette, seed int64, ops ...func(any)) image.Image
NewRandomDither creates a new RandomDither pattern.
func NewRotate ¶ added in v0.0.2
NewRotate creates a new Rotate from an existing image. degrees: 90, 180, 270 (values are normalized to these).
func NewScale ¶ added in v0.0.2
func NewScale(img image.Image, opts ...ScaleOption) image.Image
NewScale creates a new scaled image. Note: This eagerly computes the scaled image because advanced interpolation requires neighborhood access.
func NewScatter ¶ added in v0.0.3
NewScatter creates a new Scatter pattern.
func NewScreenTone ¶ added in v0.0.2
NewScreenTone creates a new ScreenTone pattern. Default Radius is 2. Default Spacing is 10. Default Angle is 45 degrees. Default FillColor is Black. Default SpaceColor is White.
func NewSierpinskiCarpet ¶ added in v0.0.2
NewSierpinskiCarpet creates a new SierpinskiCarpet pattern.
func NewSierpinskiTriangle ¶ added in v0.0.2
NewSierpinskiTriangle creates a new SierpinskiTriangle pattern.
func NewSimpleZoom ¶
NewSimpleZoom creates a new SimpleZoom with the given image and zoom factor.
func NewSpeedLines ¶ added in v0.0.2
NewSpeedLines creates a new SpeedLines pattern.
func NewSubpixelLines ¶ added in v0.0.6
NewSubpixelLines creates a new SubpixelLines pattern.
func NewThreadBands ¶ added in v0.0.6
NewThreadBands creates a thread weave pattern with sensible defaults.
func NewTransposed ¶
NewTransposed creates a new Transposed from an existing image.
func NewUniform ¶ added in v0.0.3
Helper for uniform color image
func NewVerticalLine ¶ added in v0.0.2
NewVerticalLine creates a new VerticalLine pattern.
func NewVoronoi ¶ added in v0.0.2
NewVoronoi creates a new Voronoi pattern.
func NewVoronoiTiles ¶ added in v0.0.6
func NewVoronoiTiles(bounds image.Rectangle, cellSize, gapWidth, heightBoost float64, seed int64) image.Image
NewVoronoiTiles builds a tileable material using Voronoi cells as tiles. Cell centers are lifted slightly, edges are darkened, and subtle dust noise is overlaid. Parameters:
- cellSize: Distance in pixels between Voronoi sites.
- gapWidth: How wide (0-1) the dark gap between tiles appears. Higher widens the shadow band.
- heightBoost: How much to lighten the tile centers and deepen the edges.
func NewWarp ¶ added in v0.0.3
NewWarp creates a new Warp pattern. If only Distortion is provided, it displaces both X and Y using the same map (usually diagonal if not handled). However, typically you want different noise for X and Y, so DistortionX and DistortionY are preferred for independent axis warping.
func NewWindRidges ¶ added in v0.0.6
NewWindRidges builds a wind-swept noise field.
func NewWorleyNoise ¶ added in v0.0.3
NewWorleyNoise creates a new WorleyNoise pattern.
func NewWorleyTiles ¶ added in v0.0.6
NewWorleyTiles creates a new WorleyTiles pattern.
func NewXorPattern ¶ added in v0.0.2
NewXorPattern creates a new XorPattern.
func NewYliluoma1Dither ¶ added in v0.0.3
func NewYliluoma1Dither(input image.Image, palette color.Palette, size int, ops ...func(any)) image.Image
NewYliluoma1Dither creates a new Yliluoma1Dither pattern.
func NewYliluoma2Dither ¶ added in v0.0.3
func NewYliluoma2Dither(input image.Image, palette color.Palette, size int, ops ...func(any)) image.Image
NewYliluoma2Dither creates a new Yliluoma2Dither pattern.
func NormalMapStrength ¶ added in v0.0.5
NormalMapStrength sets the strength of the normal map.
func PredicateAnyAlpha ¶ added in v0.0.2
PredicateAnyAlpha returns 1.0 if there is any alpha (opaque), 0.0 if transparent. Use average with threshold.
func PredicateInk ¶ added in v0.0.2
PredicateInk returns 1.0 for Black (ink), 0.0 for White (paper). Used to perform logic on the "ink" rather than luminance.
func RegisterGenerator ¶ added in v0.0.2
func RegisterReferences ¶ added in v0.0.2
func SetBackgroundColor ¶ added in v0.0.6
SetBackgroundColor creates an option to set the background color.
func SetBandColor ¶ added in v0.0.6
SetBandColor creates an option to set the band color.
func SetBandThickness ¶ added in v0.0.6
SetBandThickness creates an option to set the ring thickness.
func SetBladeHeight ¶ added in v0.0.3
SetBladeHeight sets the average height of a grass blade.
func SetBladeWidth ¶ added in v0.0.3
SetBladeWidth sets the average width of a grass blade at the base.
func SetBlockSize ¶ added in v0.0.6
SetBlockSize creates an option to set the block size.
func SetBooleanMode ¶ added in v0.0.6
func SetBooleanMode(m BooleanMode) func(any)
func SetBrickImages ¶ added in v0.0.3
func SetBrickOffset ¶ added in v0.0.3
func SetBrickSize ¶ added in v0.0.3
func SetChipIntensity ¶ added in v0.0.6
func SetColorOffset ¶ added in v0.0.2
func SetColorVariance ¶ added in v0.0.6
func SetCopperColor ¶ added in v0.0.6
SetCopperColor creates an option to set the copper color used for traces and vias.
func SetCrossShadowDepth ¶ added in v0.0.6
func SetDarkThreadColor ¶ added in v0.0.6
func SetDensity ¶ added in v0.0.2
SetDensity creates an option to set the density.
func SetDensitySource ¶ added in v0.0.3
SetDensitySource sets the pattern used for density.
func SetEdgeAwareness ¶ added in v0.0.2
SetEdgeAwareness creates an option to set edge awareness.
func SetEndColor ¶ added in v0.0.2
SetEndColor creates an option to set the end color.
func SetFalloffCurve ¶ added in v0.0.6
SetFalloffCurve creates an option to set the radial falloff curve strength.
func SetFalseColor ¶ added in v0.0.2
SetFalseColor creates an option to set the "false" color.
func SetFillColor ¶ added in v0.0.2
SetFillColor creates an option to set the fill color.
func SetFillImageSource ¶ added in v0.0.2
SetFillImageSource creates an option to set the fill image source.
func SetFineGridAberration ¶ added in v0.0.6
SetFineGridAberration configures how many pixels each color channel is offset for chromatic aberration.
func SetFineGridBackgroundFade ¶ added in v0.0.6
SetFineGridBackgroundFade lets the glow darken into the background (0=no fade, 1=full transparent).
func SetFineGridCellSize ¶ added in v0.0.6
SetFineGridCellSize configures the cell spacing of the grid.
func SetFineGridGlowRadius ¶ added in v0.0.6
SetFineGridGlowRadius configures the softness of the glow.
func SetFineGridGlowStrength ¶ added in v0.0.6
SetFineGridGlowStrength configures how strong the falloff glow is.
func SetFineGridHue ¶ added in v0.0.6
SetFineGridHue configures the hue (in degrees 0..360) of the glow.
func SetFineGridLineStrength ¶ added in v0.0.6
SetFineGridLineStrength configures the thickness of the core line profile.
func SetFloatCenter ¶ added in v0.0.5
SetFloatCenter creates an option to set the float center.
func SetFrequency ¶ added in v0.0.3
SetFrequency creates an option to set the frequency.
func SetFrequencyX ¶ added in v0.0.3
SetFrequencyX creates an option to set the X frequency.
func SetFrequencyY ¶ added in v0.0.3
SetFrequencyY creates an option to set the Y frequency.
func SetGlowColor ¶ added in v0.0.6
SetGlowColor creates an option to set the glow color.
func SetGlowSize ¶ added in v0.0.6
SetGlowSize creates an option to set the glow falloff width.
func SetGlyphSize ¶ added in v0.0.6
SetGlyphSize creates an option to set the glyph scale.
func SetGrainIntensity ¶ added in v0.0.6
func SetHexBevelDepth ¶ added in v0.0.6
SetHexBevelDepth creates an option to set the depth of the soft inner shadow.
func SetHexPalette ¶ added in v0.0.6
SetHexPalette creates an option to set the palette used by the HexGrid.
func SetHueJitter ¶ added in v0.0.6
func SetLatitudeLines ¶ added in v0.0.4
SetLatitudeLines creates an option to set the latitude lines.
func SetLightThreadColor ¶ added in v0.0.6
func SetLineColor ¶ added in v0.0.2
SetLineColor creates an option to set the line color.
func SetLineImageSource ¶ added in v0.0.2
SetLineImageSource creates an option to set the line image source.
func SetLineSize ¶ added in v0.0.2
SetLineSize creates an option to set the line size.
func SetLineThickness ¶ added in v0.0.6
SetLineThickness configures the thickness of each horizontal band.
func SetLongitudeLines ¶ added in v0.0.4
SetLongitudeLines creates an option to set the longitude lines.
func SetMaxRadius ¶ added in v0.0.2
SetMaxRadius creates an option to set the maximum radius.
func SetMinRadius ¶ added in v0.0.2
SetMinRadius creates an option to set the minimum radius.
func SetMortarDepth ¶ added in v0.0.6
func SetMortarImage ¶ added in v0.0.3
func SetMortarSize ¶ added in v0.0.3
func SetNoiseAlgorithm ¶ added in v0.0.2
func SetNoiseAlgorithm(algo NoiseAlgorithm) func(any)
func SetNoiseIntensity ¶ added in v0.0.2
func SetOffsetStrength ¶ added in v0.0.6
SetOffsetStrength controls the per-channel vertical offset used when sampling the alternating lines.
func SetPCBPadDensity ¶ added in v0.0.6
SetPCBPadDensity creates an option to set pad density for PCBTraces.
func SetPaintColor ¶ added in v0.0.6
func SetPaintWear ¶ added in v0.0.6
func SetPalette ¶ added in v0.0.6
SetPalette creates an option to set a color palette.
func SetPlankBaseWidth ¶ added in v0.0.6
func SetPlankWidthVariance ¶ added in v0.0.6
func SetPredicate ¶ added in v0.0.2
func SetPredicate(p ColorPredicate) func(any)
func SetRuneColor ¶ added in v0.0.6
SetRuneColor creates an option to set the rune color.
func SetScaleRadius ¶ added in v0.0.3
func SetScaleXSpacing ¶ added in v0.0.3
func SetScaleYSpacing ¶ added in v0.0.3
func SetScanlineFrequency ¶ added in v0.0.2
func SetScanlineIntensity ¶ added in v0.0.2
func SetScatterDensity ¶ added in v0.0.3
SetScatterDensity sets the probability (0-1) of an item appearing in a cell.
func SetScatterFrequency ¶ added in v0.0.3
SetScatterFrequency sets the frequency (density of grid cells).
func SetScatterGenerator ¶ added in v0.0.3
func SetScatterGenerator(g ScatterGenerator) func(any)
SetScatterGenerator sets the item generator function.
func SetScatterMaxOverlap ¶ added in v0.0.3
SetScatterMaxOverlap sets the radius of neighbor cells to check.
func SetSerpentine ¶ added in v0.0.2
SetSerpentine creates an option to set serpentine scanning.
func SetSolderMaskTint ¶ added in v0.0.6
SetSolderMaskTint creates an option to tint the solder mask.
func SetSpaceColor ¶ added in v0.0.2
SetSpaceColor creates an option to set the space color.
func SetSpaceImageSource ¶ added in v0.0.2
SetSpaceImageSource creates an option to set the space image source.
func SetSpaceSize ¶ added in v0.0.2
SetSpaceSize creates an option to set the space size.
func SetSpacing ¶ added in v0.0.2
SetSpacing creates an option to set the spacing.
func SetStartColor ¶ added in v0.0.2
SetStartColor creates an option to set the start color.
func SetStreakLength ¶ added in v0.0.6
SetStreakLength sets how far the streaking extends along the wind.
func SetThreadWidth ¶ added in v0.0.6
func SetThreshold ¶ added in v0.0.6
func SetTileGapWidth ¶ added in v0.0.6
SetTileGapWidth configures the mortar gap width in Worley distance space (0-1).
func SetTileJitter ¶ added in v0.0.6
SetTileJitter sets the Worley point jitter inside each cell (0-1).
func SetTilePalette ¶ added in v0.0.6
SetTilePalette overrides the default palette used for stones.
func SetTilePaletteSpread ¶ added in v0.0.6
SetTilePaletteSpread configures how much each stone jitters its color palette (0-1).
func SetTileStoneSize ¶ added in v0.0.6
SetTileStoneSize sets the desired average stone size (in pixels).
func SetTrueColor ¶ added in v0.0.2
SetTrueColor creates an option to set the "true" color.
func SetVignetteRadius ¶ added in v0.0.6
SetVignetteRadius adjusts the radius (in normalized 0..1 units of the shortest canvas dimension) where the vignette falloff begins.
func SetWindAngle ¶ added in v0.0.6
SetWindAngle sets the wind direction in degrees.
func SetWindContrast ¶ added in v0.0.6
SetWindContrast adjusts the luminance exponent applied after streaking.
func SetWindNoise ¶ added in v0.0.6
SetWindNoise swaps the underlying noise source.
func SetWindSource ¶ added in v0.0.3
SetWindSource sets the pattern used for wind (bending).
func SetWorleyJitter ¶ added in v0.0.3
SetWorleyJitter sets the jitter amount (0.0 to 1.0).
func SetWorleyMetric ¶ added in v0.0.3
func SetWorleyMetric(m DistanceMetric) func(any)
SetWorleyMetric sets the distance metric.
func SetWorleyOutput ¶ added in v0.0.3
func SetWorleyOutput(o WorleyOutput) func(any)
SetWorleyOutput sets the output type.
func SetZRange ¶ added in v0.0.2
SetZRange sets the expected Z range (value range) for the heatmap color mapping.
func SpeedLinesLinearType ¶ added in v0.0.2
func SpeedLinesLinearType() func(any)
Option for setting Linear Type
func StableHash ¶ added in v0.0.6
StableHash is a stateless, deterministic hash function based on coordinates and a seed. It serves as the standard "random" source for stochastic patterns in this library, ensuring that the same coordinates and seed always produce the same output.
The algorithm is a variant of SplitMix64, chosen for its good distribution and speed.
func WarpDistortion ¶ added in v0.0.3
WarpDistortion sets the distortion map (affects both X and Y).
func WarpDistortionScale ¶ added in v0.0.3
WarpDistortionScale sets the scale for sampling the distortion image (zooming into noise).
func WarpDistortionX ¶ added in v0.0.3
WarpDistortionX sets the distortion map for the X axis.
func WarpDistortionY ¶ added in v0.0.3
WarpDistortionY sets the distortion map for the Y axis.
func WarpXScale ¶ added in v0.0.3
WarpXScale sets the X distortion scale (magnitude).
func WarpYScale ¶ added in v0.0.3
WarpYScale sets the Y distortion scale (magnitude).
Types ¶
type AmbientOcclusion ¶ added in v0.0.6
AmbientOcclusion calculates AO from a height map using a sampling kernel.
func (*AmbientOcclusion) Bounds ¶ added in v0.0.6
func (ao *AmbientOcclusion) Bounds() image.Rectangle
func (*AmbientOcclusion) ColorModel ¶ added in v0.0.6
func (ao *AmbientOcclusion) ColorModel() color.Model
type Angles ¶ added in v0.0.2
type Angles struct {
Angles []float64
}
Angles configures a list of angles in degrees.
type BayerDither ¶ added in v0.0.2
type BayerDither struct {
Null
Input image.Image
Matrix []uint8
Size int // 2, 4, 8
Palette []color.Color
}
BayerDither applies ordered dithering using a Bayer matrix.
type Blend ¶ added in v0.0.3
type Blend struct {
Null
Image1 image.Image // Background
Image2 image.Image // Foreground
Mode BlendMode
}
Blend combines two images using a specified blend mode.
type BlockSize ¶ added in v0.0.6
type BlockSize struct {
BlockSize int
}
BlockSize configures the size of pixel blocks in a pattern.
func (*BlockSize) SetBlockSize ¶ added in v0.0.6
type BlueNoise ¶ added in v0.0.2
BlueNoise generates a blue noise texture approximation. We use Mitchell's Best-Candidate Algorithm to generate points, then rasterize them with a slight Gaussian blur (conceptually) or return high-frequency noise.
Blue noise is characterized by minimal low-frequency components and no spectral peaks.
For this implementation, we will generate a set of points that are well-separated (Poisson Disk-like) and then return a value based on the distance to the nearest point, or simply fill pixels.
A better "Blue Noise Mask" for dithering is usually a dense array of values 0-255 arranged such that thresholding at any level produces a blue noise distribution. Generating such a mask (e.g. via Void-and-Cluster) is expensive (O(N^2) or O(N^3)).
We will implement a simplified generator that tries to maintain separation.
func (*BlueNoise) SetSeedUint64 ¶ added in v0.0.6
type BooleanImage ¶ added in v0.0.2
type BooleanImage struct {
Null
Op BooleanOpType
Inputs []image.Image
Predicate ColorPredicate
TrueColor
FalseColor
Mode BooleanMode
Threshold float64
}
BooleanImage represents a boolean or fuzzy logic operation on input images.
func (*BooleanImage) SetBooleanMode ¶ added in v0.0.6
func (bi *BooleanImage) SetBooleanMode(m BooleanMode)
func (*BooleanImage) SetPredicate ¶ added in v0.0.2
func (bi *BooleanImage) SetPredicate(p ColorPredicate)
func (*BooleanImage) SetThreshold ¶ added in v0.0.6
func (bi *BooleanImage) SetThreshold(t float64)
type BooleanMode ¶ added in v0.0.6
type BooleanMode int
const ( ModeAuto BooleanMode = iota // Infer mode based on configuration ModeFuzzy // Predicate -> Float Logic -> Interpolate ModeThreshold // Predicate -> Threshold (0/1) -> Boolean Logic -> Select Color (Strict True/False) ModeComponentWise // R=Min(Ra, Rb), etc. ModeBitwise // R=Ra & Rb, etc. )
type BooleanOpType ¶ added in v0.0.2
type BooleanOpType int
const ( OpAnd BooleanOpType = iota OpOr OpXor OpNot OpBitwiseAnd OpBitwiseOr OpBitwiseXor OpBitwiseNot )
type Bounded ¶ added in v0.0.2
type Bounded interface {
PatternBounds() Bounds
}
Bounded is the interface that bounded objects should implement. Note: The method is named PatternBounds to avoid conflict with image.Image.Bounds().
type Bounds ¶ added in v0.0.2
type Bounds struct {
Left, Right, Top, Bottom *Range
}
Bounds defines the boundaries of an object using Ranges.
type Brick ¶ added in v0.0.3
type Brick struct {
Null
Width, Height int
MortarSize int
Offset float64
BrickImages []image.Image
MortarImage image.Image
Seed
}
Brick is a pattern that simulates a brick wall with running bond layout. It supports configurable brick size, mortar size, row offset, and multiple brick textures.
func (*Brick) SetBrickImages ¶ added in v0.0.3
func (*Brick) SetBrickOffset ¶ added in v0.0.3
func (*Brick) SetBrickSize ¶ added in v0.0.3
func (*Brick) SetMortarImage ¶ added in v0.0.3
func (*Brick) SetMortarSize ¶ added in v0.0.3
type BrickOffset ¶ added in v0.0.3
type BrickOffset struct{ Offset float64 }
func (*BrickOffset) SetBrickOffset ¶ added in v0.0.3
func (p *BrickOffset) SetBrickOffset(o float64)
type BrickSize ¶ added in v0.0.3
type BrickSize struct{ Width, Height int }
func (*BrickSize) SetBrickSize ¶ added in v0.0.3
type Buffer ¶ added in v0.0.6
type Buffer struct {
Null
Expiry
Source image.Image
Cached image.Image
LastRefresh time.Time
// contains filtered or unexported fields
}
Buffer acts as a cache for a source image.
type Center ¶ added in v0.0.2
type Center struct {
CenterX, CenterY int
}
Center configures the center point of a pattern (integer coordinates).
type Checker ¶
Checker is a pattern that alternates between two colors in a checkerboard fashion.
func (*Checker) ColorModel ¶
type ChipIntensity ¶ added in v0.0.6
type ChipIntensity struct{ Amount float64 }
func (*ChipIntensity) SetChipIntensity ¶ added in v0.0.6
func (c *ChipIntensity) SetChipIntensity(v float64)
type ChippedBrick ¶ added in v0.0.6
type ChippedBrick struct {
Null
BrickWidth, BrickHeight int
MortarSize int
ChipIntensity float64
MortarDepth float64
HueJitter float64
Offset float64
Seed
}
ChippedBrick renders a brick wall with hue jitter per brick, chipped edges, and uneven mortar shading.
func (*ChippedBrick) ColorModel ¶ added in v0.0.6
func (b *ChippedBrick) ColorModel() color.Model
func (*ChippedBrick) SetBounds ¶ added in v0.0.6
func (b *ChippedBrick) SetBounds(r image.Rectangle)
func (*ChippedBrick) SetBrickOffset ¶ added in v0.0.6
func (b *ChippedBrick) SetBrickOffset(v float64)
func (*ChippedBrick) SetBrickSize ¶ added in v0.0.6
func (b *ChippedBrick) SetBrickSize(w, h int)
func (*ChippedBrick) SetChipIntensity ¶ added in v0.0.6
func (b *ChippedBrick) SetChipIntensity(v float64)
func (*ChippedBrick) SetHueJitter ¶ added in v0.0.6
func (b *ChippedBrick) SetHueJitter(v float64)
func (*ChippedBrick) SetMortarDepth ¶ added in v0.0.6
func (b *ChippedBrick) SetMortarDepth(v float64)
func (*ChippedBrick) SetMortarSize ¶ added in v0.0.6
func (b *ChippedBrick) SetMortarSize(v int)
func (*ChippedBrick) SetSeed ¶ added in v0.0.6
func (b *ChippedBrick) SetSeed(v int64)
func (*ChippedBrick) SetSeedUint64 ¶ added in v0.0.6
func (b *ChippedBrick) SetSeedUint64(v uint64)
type ChunkyBands ¶ added in v0.0.6
ChunkyBands composes chunky pixel bands at a configurable angle.
type Circle ¶ added in v0.0.2
type Circle struct {
Null
LineSize
LineColor
LineImageSource
FillColor
FillImageSource
SpaceColor
}
Circle is a pattern that draws a circle fitting within its bounds. It supports a border (LineSize, LineColor, LineImageSource) and a fill (FillColor, FillImageSource).
type ColorMap ¶ added in v0.0.2
ColorMap applies a color ramp to the luminance of the source image.
type ColorPredicate ¶ added in v0.0.2
ColorPredicate converts a color to a fuzzy value between 0.0 and 1.0.
func PredicateAlphaThreshold ¶ added in v0.0.2
func PredicateAlphaThreshold(threshold uint8) ColorPredicate
AlphaThreshold returns 1.0 if alpha >= threshold, else 0.0
func PredicateAverageGrayAbove ¶ added in v0.0.2
func PredicateAverageGrayAbove(threshold uint8) ColorPredicate
AverageGrayAbove returns 1.0 if average of RGB >= threshold, else 0.0
func PredicateFuzzyAlpha ¶ added in v0.0.2
func PredicateFuzzyAlpha() ColorPredicate
FuzzyAlpha returns the alpha value as a float 0-1
func PredicateFuzzyRed ¶ added in v0.0.2
func PredicateFuzzyRed() ColorPredicate
FuzzyRed returns the red value as a float 0-1
func PredicateRedAbove ¶ added in v0.0.2
func PredicateRedAbove(threshold uint8) ColorPredicate
RedAbove returns 1.0 if red >= threshold, else 0.0
type ColorStop ¶ added in v0.0.2
ColorStop defines a color at a specific position (0.0 to 1.0) in the map.
type ConcentricRings ¶ added in v0.0.2
type ConcentricRings struct {
Null
Center
Frequency
FrequencyX
FrequencyY
Colors []color.Color
}
ConcentricRings generates concentric rings using sqrt(x^2 + y^2) % n.
type ConcentricWater ¶ added in v0.0.6
type ConcentricWater struct {
Null
Center
RingSpacing float64
Amplitude float64
AmplitudeFalloff float64
BaseTint color.RGBA
NormalStrength float64
// contains filtered or unexported fields
}
ConcentricWater renders concentric distance-field ripples with sine-driven height that modulates both tint and inferred normals for a water-like look.
func (*ConcentricWater) Bounds ¶ added in v0.0.6
func (cw *ConcentricWater) Bounds() image.Rectangle
func (*ConcentricWater) ColorModel ¶ added in v0.0.6
func (cw *ConcentricWater) ColorModel() color.Model
type ConicGradient ¶ added in v0.0.2
type ConicGradient struct {
Null
StartColor
EndColor
FloatCenter
UseFloatCenter bool
}
ConicGradient represents a conic (angular) color gradient.
type Crop ¶ added in v0.0.2
type Crop struct {
// contains filtered or unexported fields
}
func (*Crop) ColorModel ¶ added in v0.0.2
type CrossHatch ¶ added in v0.0.2
type CrossHatch struct {
Null
SpaceSize
LineSize
LineColor
SpaceColor
LineImageSource
Angles
}
CrossHatch is a pattern that draws layered diagonal hatch lines.
func (*CrossHatch) SetAngle ¶ added in v0.0.2
func (p *CrossHatch) SetAngle(v float64)
type CrossShadow ¶ added in v0.0.6
type CrossShadow struct{ Depth float64 }
func (*CrossShadow) SetCrossShadowDepth ¶ added in v0.0.6
func (c *CrossShadow) SetCrossShadowDepth(v float64)
type Curvature ¶ added in v0.0.6
Curvature calculates curvature (convex/concave) from a height map.
func (*Curvature) ColorModel ¶ added in v0.0.6
type DarkColor ¶ added in v0.0.6
func (*DarkColor) SetDarkThreadColor ¶ added in v0.0.6
type Density ¶ added in v0.0.2
type Density struct {
Density float64
}
Density configures the density of a pattern.
func (*Density) SetDensity ¶ added in v0.0.2
type DiffusionItem ¶ added in v0.0.2
DiffusionItem represents a single weight in the kernel.
type DiffusionKernel ¶ added in v0.0.2
type DiffusionKernel struct {
Items []DiffusionItem
Divisor float64
}
DiffusionKernel represents the error diffusion kernel. It consists of a list of weights applied to neighboring pixels.
type DirtyAware ¶ added in v0.0.6
type DirtyAware interface {
IsDirty() bool
}
DirtyAware is an interface for patterns that can report if they are dirty.
type DistanceMetric ¶ added in v0.0.3
type DistanceMetric int
const ( MetricEuclidean DistanceMetric = iota MetricManhattan MetricChebyshev )
type EdgeAwareness ¶ added in v0.0.2
type EdgeAwareness struct {
EdgeAwareness float64
}
EdgeAwareness configures the strength of edge-aware diffusion.
func (*EdgeAwareness) SetEdgeAwareness ¶ added in v0.0.2
func (e *EdgeAwareness) SetEdgeAwareness(v float64)
type EdgeDetect ¶ added in v0.0.2
type EdgeDetect struct {
// contains filtered or unexported fields
}
EdgeDetect is a pattern that applies edge detection (Sobel operator) to an underlying image.
func (*EdgeDetect) Bounds ¶ added in v0.0.2
func (e *EdgeDetect) Bounds() image.Rectangle
func (*EdgeDetect) ColorModel ¶ added in v0.0.2
func (e *EdgeDetect) ColorModel() color.Model
type EndColor ¶ added in v0.0.2
EndColor configures the end color for a gradient.
func (*EndColor) SetEndColor ¶ added in v0.0.2
type ErrorDiffusion ¶ added in v0.0.2
type ErrorDiffusion struct {
Null
// contains filtered or unexported fields
}
ErrorDiffusion applies error diffusion dithering to an image.
func (*ErrorDiffusion) SetEdgeAwareness ¶ added in v0.0.2
func (e *ErrorDiffusion) SetEdgeAwareness(v float64)
func (*ErrorDiffusion) SetGamma ¶ added in v0.0.2
func (e *ErrorDiffusion) SetGamma(v float64)
func (*ErrorDiffusion) SetSerpentine ¶ added in v0.0.2
func (e *ErrorDiffusion) SetSerpentine(v bool)
type FalloffCurve ¶ added in v0.0.6
type FalloffCurve struct {
FalloffCurve float64
}
FalloffCurve configures an exponent used for radial falloff calculations.
func (*FalloffCurve) SetFalloffCurve ¶ added in v0.0.6
func (f *FalloffCurve) SetFalloffCurve(v float64)
type FalseColor ¶ added in v0.0.2
FalseColor configures the color used for "false" values in boolean/fuzzy operations.
func (*FalseColor) SetFalseColor ¶ added in v0.0.2
func (s *FalseColor) SetFalseColor(v color.Color)
type Fibonacci ¶ added in v0.0.2
type Fibonacci struct {
Null
LineSize
LineColor
SpaceColor
}
Fibonacci is a pattern that draws a Fibonacci (Golden) spiral. It uses the logarithmic spiral equation r = a * e^(b * theta) with b = 2*ln(Phi)/pi. It supports LineSize, LineColor, and SpaceColor.
type FillColor ¶ added in v0.0.2
FillColor configures the fill color in a pattern (e.g. for dots).
func (*FillColor) SetFillColor ¶ added in v0.0.2
type FillImageSource ¶ added in v0.0.2
FillImageSource configures an image source for fill in a pattern.
func (*FillImageSource) SetFillImageSource ¶ added in v0.0.2
func (s *FillImageSource) SetFillImageSource(v image.Image)
type FineGrid ¶ added in v0.0.6
type FineGrid struct {
Null
CellSize int
GlowRadius float64
Hue float64
AberrationOffset int
GlowStrength float64
LineCoreStrength float64
BackgroundOpacity float64
}
FineGrid renders a thin grid on black with a soft outer glow and mild chromatic aberration.
func (*FineGrid) ColorModel ¶ added in v0.0.6
func (*FineGrid) SetFineGridCellSize ¶ added in v0.0.6
func (*FineGrid) SetFineGridGlowRadius ¶ added in v0.0.6
func (*FineGrid) SetFineGridHue ¶ added in v0.0.6
type FloatCenter ¶ added in v0.0.5
type FloatCenter struct {
CenterX, CenterY float64
}
FloatCenter configures the center point of a pattern (float coordinates).
func (*FloatCenter) SetFloatCenter ¶ added in v0.0.5
func (c *FloatCenter) SetFloatCenter(x, y float64)
type Fog ¶ added in v0.0.6
type Fog struct {
Null
FillColor
Density
FloatCenter
FalloffCurve
// contains filtered or unexported fields
}
Fog renders a tinted, noise-driven fog with radial falloff. The center stays clearer than the edges to focus the viewer's eye.
func (*Fog) ColorModel ¶ added in v0.0.6
func (*Fog) SetFloatCenter ¶ added in v0.0.6
SetFloatCenter selects the normalized center for the falloff.
func (*Fog) SetNoiseAlgorithm ¶ added in v0.0.6
func (f *Fog) SetNoiseAlgorithm(algo NoiseAlgorithm)
SetNoiseAlgorithm allows swapping the underlying noise source.
type Frequency ¶ added in v0.0.3
type Frequency struct {
Frequency float64
}
Frequency configures the frequency of a pattern.
func (*Frequency) SetFrequency ¶ added in v0.0.3
type FrequencyX ¶ added in v0.0.3
type FrequencyX struct {
FrequencyX float64
}
FrequencyX configures the X frequency of a pattern.
func (*FrequencyX) SetFrequencyX ¶ added in v0.0.3
func (s *FrequencyX) SetFrequencyX(v float64)
type FrequencyY ¶ added in v0.0.3
type FrequencyY struct {
FrequencyY float64
}
FrequencyY configures the Y frequency of a pattern.
func (*FrequencyY) SetFrequencyY ¶ added in v0.0.3
func (s *FrequencyY) SetFrequencyY(v float64)
type Generic ¶ added in v0.0.6
func (*Generic) ColorModel ¶ added in v0.0.6
type Globe ¶ added in v0.0.4
type Globe struct {
Null
FillImageSource
LatitudeLines // Number of lines along latitude
LongitudeLines // Number of lines along longitude
Angle // Rotation around Y axis (in degrees)
Tilt // Rotation around X axis (in degrees)
LineColor
SpaceColor
}
Globe renders a 3D sphere projected onto 2D. It supports configurable latitude and longitude grid lines, 3D rotation via Angle (Y-axis) and Tilt (X-axis/Z-axis), and texture mapping via FillImageSource with UV coordinates.
type GlyphRing ¶ added in v0.0.6
type GlyphRing struct {
Null
Radius
Density
Seed
GlowColor color.Color
RuneColor color.Color
BandColor color.Color
Background color.Color
BandThickness int
GlowSize int
GlyphSize int
// contains filtered or unexported fields
}
GlyphRing renders a circular band with glyphs stamped around its circumference and a soft outer glow. Parameters of interest:
- Radius (via SetRadius): controls the ring radius relative to the bounds.
- Density (via SetDensity): controls how many runes appear around the circle.
- GlowColor (via SetGlowColor): sets the tint of the exterior glow.
Additional styling controls (rune, band, and background colors plus sizing) are provided via setters.
func (*GlyphRing) ColorModel ¶ added in v0.0.6
func (*GlyphRing) SetBackgroundColor ¶ added in v0.0.6
SetBackgroundColor sets the background color.
func (*GlyphRing) SetBandColor ¶ added in v0.0.6
SetBandColor sets the ring body color.
func (*GlyphRing) SetBandThickness ¶ added in v0.0.6
SetBandThickness adjusts the ring thickness.
func (*GlyphRing) SetGlowColor ¶ added in v0.0.6
SetGlowColor sets the outer glow color.
func (*GlyphRing) SetGlowSize ¶ added in v0.0.6
SetGlowSize adjusts the glow falloff width.
func (*GlyphRing) SetGlyphSize ¶ added in v0.0.6
SetGlyphSize adjusts the glyph scale.
func (*GlyphRing) SetRuneColor ¶ added in v0.0.6
SetRuneColor sets the glyph fill color.
type GrassClose ¶ added in v0.0.3
type GrassClose struct {
Null
BladeWidth float64
BladeHeight float64
FillColor // Blade color
Source image.Image // Background
Wind image.Image // Controls bend
Density image.Image // Controls density
Seed int64
}
GrassClose is a pattern that generates procedural grass blades.
func (*GrassClose) Bounds ¶ added in v0.0.3
func (p *GrassClose) Bounds() image.Rectangle
func (*GrassClose) ColorModel ¶ added in v0.0.3
func (p *GrassClose) ColorModel() color.Model
type Grid ¶ added in v0.0.2
type Grid struct {
// contains filtered or unexported fields
}
func (*Grid) ColorModel ¶ added in v0.0.2
type HashNoise ¶ added in v0.0.2
type HashNoise struct {
Seed int64
}
HashNoise uses a high-quality, stateless pseudo-random number generator based on coordinates. It produces a non-repeating pattern derived algorithmically.
type Heatmap ¶ added in v0.0.2
type Heatmap struct {
Null
StartColor
EndColor
Func HeatmapFunc
MinX, MaxX float64
MinY, MaxY float64
MinZ, MaxZ float64
}
Heatmap generates a color gradient based on a 2D scalar function.
type HeatmapFunc ¶ added in v0.0.2
HeatmapFunc is the function signature for the heatmap generator. It accepts logical coordinates (x, y) and returns a scalar value z.
type HexGrid ¶ added in v0.0.6
HexGrid renders an axial-coordinate hexagonal grid with alternating colors and a soft inner shadow near the cell edges.
func (*HexGrid) ColorModel ¶ added in v0.0.6
func (*HexGrid) SetHexBevelDepth ¶ added in v0.0.6
func (*HexGrid) SetHexPalette ¶ added in v0.0.6
type HorizontalLine ¶ added in v0.0.2
type HorizontalLine struct {
Null
SpaceSize
LineSize
LineColor
SpaceColor
LineImageSource
Phase
}
HorizontalLine is a pattern that draws horizontal lines.
type KnollDither ¶ added in v0.0.3
type KnollDither struct {
Null
Input image.Image
Palette []color.Color
Matrix []int // Integer matrix 0..63 for 8x8
Size int
// contains filtered or unexported fields
}
KnollDither implements Thomas Knoll's pattern dithering (Photoshop).
type LatitudeLines ¶ added in v0.0.4
type LatitudeLines struct {
LatitudeLines int
}
LatitudeLines configures the number of latitude lines.
func (*LatitudeLines) SetLatitudeLines ¶ added in v0.0.4
func (s *LatitudeLines) SetLatitudeLines(v int)
type LightColor ¶ added in v0.0.6
func (*LightColor) SetLightThreadColor ¶ added in v0.0.6
func (c *LightColor) SetLightThreadColor(col color.Color)
type LineColor ¶ added in v0.0.2
LineColor configures the color of lines in a pattern.
func (*LineColor) SetLineColor ¶ added in v0.0.2
type LineImageSource ¶ added in v0.0.2
LineImageSource configures an image source for lines in a pattern.
func (*LineImageSource) SetLineImageSource ¶ added in v0.0.2
func (s *LineImageSource) SetLineImageSource(v image.Image)
type LineSize ¶ added in v0.0.2
type LineSize struct {
LineSize int
}
LineSize configures the thickness of lines in a pattern.
func (*LineSize) SetLineSize ¶ added in v0.0.2
type LinearGradient ¶ added in v0.0.2
type LinearGradient struct {
Null
StartColor
EndColor
Vertical bool
}
LinearGradient represents a linear color gradient.
type LongitudeLines ¶ added in v0.0.4
type LongitudeLines struct {
LongitudeLines int
}
LongitudeLines configures the number of longitude lines.
func (*LongitudeLines) SetLongitudeLines ¶ added in v0.0.4
func (s *LongitudeLines) SetLongitudeLines(v int)
type Material ¶ added in v0.0.6
type Material struct {
Albedo image.Image
Normal image.Image
Roughness image.Image
Metalness image.Image
AO image.Image
Height image.Image
}
Material is a collection of images representing different PBR channels.
type MaxRadius ¶ added in v0.0.2
type MaxRadius struct {
MaxRadius float64
}
MaxRadius configures the maximum radius.
func (*MaxRadius) SetMaxRadius ¶ added in v0.0.2
type MinRadius ¶ added in v0.0.2
type MinRadius struct {
MinRadius float64
}
MinRadius configures the minimum radius.
func (*MinRadius) SetMinRadius ¶ added in v0.0.2
type Mirror ¶ added in v0.0.2
type Mirror struct {
// contains filtered or unexported fields
}
Mirror is a pattern that mirrors (flips) the X and/or Y coordinates of an underlying image.
func (*Mirror) ColorModel ¶ added in v0.0.2
type ModuloStripe ¶ added in v0.0.2
ModuloStripe generates a pattern based on (x + y) % n.
type MortarDepth ¶ added in v0.0.6
type MortarDepth struct{ Depth float64 }
func (*MortarDepth) SetMortarDepth ¶ added in v0.0.6
func (m *MortarDepth) SetMortarDepth(v float64)
type MortarSize ¶ added in v0.0.3
type MortarSize struct{ Size int }
func (*MortarSize) SetMortarSize ¶ added in v0.0.3
func (p *MortarSize) SetMortarSize(s int)
type MudTracksOption ¶ added in v0.0.6
type MudTracksOption func(*mudTracksConfig)
MudTracksOption configures the appearance of the mud tracks example/generator.
func SetMudTracksBandWidth ¶ added in v0.0.6
func SetMudTracksBandWidth(width int) MudTracksOption
SetMudTracksBandWidth sets the width of each compacted band.
func SetMudTracksDarkness ¶ added in v0.0.6
func SetMudTracksDarkness(value float64) MudTracksOption
SetMudTracksDarkness darkens the compacted mud and embedded pebbles (0 = light, 1 = dark).
func SetMudTracksWobble ¶ added in v0.0.6
func SetMudTracksWobble(amount float64) MudTracksOption
SetMudTracksWobble controls how much the bands meander vertically.
type MultiScaleOrderedDither ¶ added in v0.0.2
type MultiScaleOrderedDither struct {
Null
// contains filtered or unexported fields
}
MultiScaleOrderedDither blends between two matrices based on local variance.
type Noise ¶ added in v0.0.2
type Noise struct {
Null
// contains filtered or unexported fields
}
Noise pattern generates random noise based on a selected algorithm.
func (*Noise) SetNoiseAlgorithm ¶ added in v0.0.2
func (n *Noise) SetNoiseAlgorithm(algo NoiseAlgorithm)
func (*Noise) SetSeed ¶ added in v0.0.6
SetSeed sets the seed for the noise algorithm. It switches to HashNoise if the current algo is CryptoNoise.
func (*Noise) SetSeedUint64 ¶ added in v0.0.6
SetSeedUint64 sets the seed for the noise algorithm. It switches to HashNoise if the current algo is CryptoNoise.
type NoiseAlgorithm ¶ added in v0.0.2
NoiseAlgorithm defines the source of randomness for the Noise pattern.
type NormalMap ¶ added in v0.0.5
NormalMap generates a tangent-space normal map from a source height map. The red channel represents the X (horizontal) vector. The green channel represents the Y (vertical) vector. The blue channel represents the Z (depth) vector.
func (*NormalMap) At ¶ added in v0.0.5
At returns the normal map color at the specified coordinates.
func (*NormalMap) ColorModel ¶ added in v0.0.5
ColorModel returns RGB.
type Null ¶
type Null struct {
// contains filtered or unexported fields
}
Null is a pattern that returns a transparent color for all pixels.
func (*Null) ColorModel ¶
type OrderedDither ¶ added in v0.0.2
type OrderedDither struct {
Null
// contains filtered or unexported fields
}
OrderedDither applies ordered dithering using a threshold matrix.
type PCBTraces ¶ added in v0.0.6
PCBTraces renders an orthogonal trace grid with vias and a solder-mask-tinted background.
func (*PCBTraces) ColorModel ¶ added in v0.0.6
func (*PCBTraces) SetCopperColor ¶ added in v0.0.6
SetCopperColor customizes the copper color for traces and vias.
func (*PCBTraces) SetPadDensity ¶ added in v0.0.6
SetPadDensity adjusts how frequently vias appear (0..1 range recommended).
func (*PCBTraces) SetSolderMaskTint ¶ added in v0.0.6
SetSolderMaskTint customizes the base solder mask color.
type Padding ¶ added in v0.0.2
type Padding struct {
// contains filtered or unexported fields
}
func (*Padding) ColorModel ¶ added in v0.0.2
type PaddingOption ¶ added in v0.0.2
type PaddingOption func(*paddingConfig)
func PaddingBackground ¶ added in v0.0.2
func PaddingBackground(bg image.Image) PaddingOption
func PaddingBottom ¶ added in v0.0.2
func PaddingBottom(m int) PaddingOption
func PaddingBoundary ¶ added in v0.0.2
func PaddingBoundary(r image.Rectangle) PaddingOption
func PaddingCenter ¶ added in v0.0.2
func PaddingCenter() PaddingOption
PaddingCenter attempts to center the image within the provided boundary. It requires PaddingBoundary to be set OR assumes the output size will be large enough. Actually, if we don't know the output size yet, "Center" is ambiguous. But we can define "Center" as: Calculate padding such that image is centered in `bounds`. This requires `bounds` to be known. If used with `PaddingBoundary`, we can calculate margins.
func PaddingCenterBox ¶ added in v0.0.2
func PaddingCenterBox(bounds image.Rectangle) PaddingOption
func PaddingCenterIn ¶ added in v0.0.2
func PaddingCenterIn(bounds image.Rectangle, imgBounds image.Rectangle) PaddingOption
func PaddingLeft ¶ added in v0.0.2
func PaddingLeft(m int) PaddingOption
func PaddingMargin ¶ added in v0.0.2
func PaddingMargin(m int) PaddingOption
func PaddingRight ¶ added in v0.0.2
func PaddingRight(m int) PaddingOption
func PaddingTop ¶ added in v0.0.2
func PaddingTop(m int) PaddingOption
type PaintedPlanks ¶ added in v0.0.6
type PaintedPlanks struct {
Null
BaseWidth int
WidthVariance float64
GrainIntensity float64
PaintWear float64
PaintColor color.RGBA
SeamColor color.RGBA
WoodDark color.RGBA
WoodLight color.RGBA
Seed
// contains filtered or unexported fields
}
PaintedPlanks composes a set of vertical boards with wood grain and a chipped paint overlay.
func (*PaintedPlanks) SetGrainIntensity ¶ added in v0.0.6
func (p *PaintedPlanks) SetGrainIntensity(v float64)
func (*PaintedPlanks) SetPaintColor ¶ added in v0.0.6
func (p *PaintedPlanks) SetPaintColor(c color.RGBA)
func (*PaintedPlanks) SetPaintWear ¶ added in v0.0.6
func (p *PaintedPlanks) SetPaintWear(v float64)
func (*PaintedPlanks) SetPlankBaseWidth ¶ added in v0.0.6
func (p *PaintedPlanks) SetPlankBaseWidth(w int)
Implement setters
func (*PaintedPlanks) SetPlankWidthVariance ¶ added in v0.0.6
func (p *PaintedPlanks) SetPlankWidthVariance(v float64)
type Palette ¶ added in v0.0.6
Palette configures a list of colors used by a pattern.
func (*Palette) SetPalette ¶ added in v0.0.6
type PerlinNoise ¶ added in v0.0.2
type PerlinNoise struct {
Seed int64
Octaves int
Persistence float64 // Alpha
Lacunarity float64 // Beta
Frequency float64
// contains filtered or unexported fields
}
PerlinNoise implements Improved Perlin Noise with Fractional Brownian Motion (fBm).
type Phase ¶ added in v0.0.2
type Phase struct {
Phase float64
}
Phase configures the phase/offset of a pattern.
type Plasma ¶ added in v0.0.2
type Plasma struct {
Null
Seed int64
Roughness float64
Color bool // If true, generates RGB plasma. If false, grayscale.
// contains filtered or unexported fields
}
Plasma generates a plasma noise texture using Diamond-Square algorithm. It supports RGB (independent channels) or Grayscale.
func (*Plasma) SetSeedUint64 ¶ added in v0.0.6
type Polka ¶ added in v0.0.2
type Polka struct {
Null
Radius
Spacing
FillColor
SpaceColor
}
Polka is a pattern that displays a grid of circles (polka dots).
func (*Polka) ColorModel ¶ added in v0.0.2
type Quantize ¶ added in v0.0.2
type Quantize struct {
Null
// contains filtered or unexported fields
}
Quantize reduces the number of colors in an image by quantizing each channel to a specified number of levels.
func (*Quantize) ColorModel ¶ added in v0.0.2
type RadialGradient ¶ added in v0.0.2
type RadialGradient struct {
Null
StartColor
EndColor
FloatCenter
UseFloatCenter bool
}
RadialGradient represents a radial color gradient.
type Radius ¶ added in v0.0.2
type Radius struct {
Radius int
}
Radius configures the radius of circles/dots in a pattern.
type RandomDither ¶ added in v0.0.2
type RandomDither struct {
Null
// contains filtered or unexported fields
}
RandomDither applies random noise dithering.
type Range ¶ added in v0.0.2
type Range struct {
Low, High *int
}
Range defines a range with optional low and high bounds. If Low or High is nil, it represents an unbounded range in that direction.
type Rect ¶ added in v0.0.2
type Rect struct {
Null
FillColor
LineSize
LineColor
LineImageSource
}
Rect is a pattern that draws a filled rectangle.
type Rotate ¶ added in v0.0.2
type Rotate struct {
// contains filtered or unexported fields
}
Rotate is a pattern that rotates an underlying image by 90, 180, or 270 degrees.
func (*Rotate) ColorModel ¶ added in v0.0.2
type ScaleOption ¶ added in v0.0.2
type ScaleOption func(*scaleConfig)
ScaleOption defines options for the Scale pattern
func ScaleAlg
deprecated
added in
v0.0.2
func ScaleAlg(s draw.Scaler) ScaleOption
Deprecated: Use ScaleUsing
func ScaleFactor
deprecated
added in
v0.0.2
func ScaleFactor(f float64) ScaleOption
Deprecated: Use ScaleToRatio
func ScaleSize ¶ added in v0.0.2
func ScaleSize(w, h int) ScaleOption
Alias for backwards compatibility if needed, but user requested new names
func ScaleToFraction ¶ added in v0.0.2
func ScaleToFraction(f float64) ScaleOption
func ScaleToMultiple ¶ added in v0.0.2
func ScaleToMultiple(f int) ScaleOption
func ScaleToRatio ¶ added in v0.0.2
func ScaleToRatio(f float64) ScaleOption
func ScaleToSize ¶ added in v0.0.2
func ScaleToSize(w, h int) ScaleOption
func ScaleUsing ¶ added in v0.0.2
func ScaleUsing(s draw.Scaler) ScaleOption
func ScaleX ¶ added in v0.0.5
func ScaleX(f float64) ScaleOption
ScaleX sets independent X scaling factor
func ScaleY ¶ added in v0.0.5
func ScaleY(f float64) ScaleOption
ScaleY sets independent Y scaling factor
type ScaleRadius ¶ added in v0.0.3
type ScaleRadius struct{ Radius int }
func (*ScaleRadius) SetScaleRadius ¶ added in v0.0.3
func (s *ScaleRadius) SetScaleRadius(v int)
type ScaleXSpacing ¶ added in v0.0.3
type ScaleXSpacing struct{ SpacingX int }
func (*ScaleXSpacing) SetScaleXSpacing ¶ added in v0.0.3
func (s *ScaleXSpacing) SetScaleXSpacing(v int)
type ScaleYSpacing ¶ added in v0.0.3
type ScaleYSpacing struct{ SpacingY int }
func (*ScaleYSpacing) SetScaleYSpacing ¶ added in v0.0.3
func (s *ScaleYSpacing) SetScaleYSpacing(v int)
type ScaledImage ¶ added in v0.0.2
We need a wrapper that holds the Result image.
type Scales ¶ added in v0.0.3
Scales generates an overlapping scales pattern.
func (*Scales) SetScaleRadius ¶ added in v0.0.3
Implement interfaces on Scales struct
func (*Scales) SetScaleXSpacing ¶ added in v0.0.3
func (*Scales) SetScaleYSpacing ¶ added in v0.0.3
type Scatter ¶ added in v0.0.3
type Scatter struct {
Null
SpaceColor // Background color
Frequency float64 // Controls cell size (1/Frequency)
Density float64 // 0.0 to 1.0, chance of item appearing in a cell
Generator ScatterGenerator
Seed int64
MaxOverlap int // Radius of neighbor cells to check (default 1 for 3x3)
}
Scatter places generated items in a grid with random offsets. It supports overlapping items by sorting them by a Z-index derived from the hash.
func (*Scatter) SetSeedUint64 ¶ added in v0.0.6
type ScatterGenerator ¶ added in v0.0.3
ScatterGenerator is a function that returns the color/alpha of an item at a given local coordinate. u, v: Local coordinates relative to the item's center (approx -0.5 to 0.5 range depending on cell). hash: Random hash for this specific item instance. returns: The color of the pixel. If Alpha is 0, it's transparent.
type ScatterItem ¶ added in v0.0.3
ScatterItem represents a single item placed by the Scatter pattern. It is calculated by the user-provided generator function.
type ScreenTone ¶ added in v0.0.2
type ScreenTone struct {
Null
Radius // Size of the dots
Spacing // Distance between dots (frequency)
Angle // Angle of the grid in degrees
FillColor
SpaceColor
}
ScreenTone is a pattern that displays a grid of dots (halftone) at a specified angle.
func (*ScreenTone) Bounds ¶ added in v0.0.2
func (p *ScreenTone) Bounds() image.Rectangle
func (*ScreenTone) ColorModel ¶ added in v0.0.2
func (p *ScreenTone) ColorModel() color.Model
type Seed ¶ added in v0.0.2
type Seed struct {
Seed int64
}
Seed configures the seed for a pattern.
func (*Seed) SetSeedUint64 ¶ added in v0.0.6
type Serpentine ¶ added in v0.0.2
type Serpentine struct {
Serpentine bool
}
Serpentine configures the error diffusion to use serpentine scanning.
func (*Serpentine) SetSerpentine ¶ added in v0.0.2
func (s *Serpentine) SetSerpentine(v bool)
type Shojo ¶ added in v0.0.2
type Shojo struct {
Null
FillColor // Sparkle color
SpaceColor // Background color
Seed int64
}
Shojo is a pattern that generates scattered starbursts with glow halos ("Shōjo Sparkles").
func (*Shojo) At ¶ added in v0.0.2
At returns the color of the pixel at (x, y). It implements a grid-based scattered point algorithm to render starbursts.
func (*Shojo) ColorModel ¶ added in v0.0.2
func (*Shojo) SetSeedUint64 ¶ added in v0.0.6
SetSeedUint64 sets the seed for the Shojo pattern.
type SierpinskiCarpet ¶ added in v0.0.2
type SierpinskiCarpet struct {
Null
FillColor
SpaceColor
}
SierpinskiCarpet represents a pattern generated using the Sierpinski Carpet fractal algorithm.
type SierpinskiTriangle ¶ added in v0.0.2
type SierpinskiTriangle struct {
Null
FillColor
SpaceColor
}
SierpinskiTriangle represents a pattern generated using the Sierpinski Triangle fractal algorithm. It uses a bitwise operation equivalent to Pascal's Triangle modulo 2.
type SimpleZoom ¶
type SimpleZoom struct {
Null
// contains filtered or unexported fields
}
SimpleZoom is a pattern that zooms in on an underlying image.
func (*SimpleZoom) Bounds ¶
func (s *SimpleZoom) Bounds() image.Rectangle
func (*SimpleZoom) ColorModel ¶
func (s *SimpleZoom) ColorModel() color.Model
type SpaceColor ¶ added in v0.0.2
SpaceColor configures the color of spaces in a pattern.
func (*SpaceColor) SetSpaceColor ¶ added in v0.0.2
func (s *SpaceColor) SetSpaceColor(v color.Color)
type SpaceImageSource ¶ added in v0.0.2
SpaceImageSource configures an image source for spaces in a pattern.
func (*SpaceImageSource) SetSpaceImageSource ¶ added in v0.0.2
func (s *SpaceImageSource) SetSpaceImageSource(v image.Image)
type SpaceSize ¶ added in v0.0.2
type SpaceSize struct {
SpaceSize int
}
SpaceSize configures the size of spaces in a pattern.
func (*SpaceSize) SetSpaceSize ¶ added in v0.0.2
type Spacing ¶ added in v0.0.2
type Spacing struct {
Spacing int
}
Spacing configures the spacing/periodicity in a pattern.
func (*Spacing) SetSpacing ¶ added in v0.0.2
type SpeedLines ¶ added in v0.0.2
type SpeedLines struct {
Null
Center
LineColor
SpaceColor
SpaceImageSource
LineImageSource
MinRadius
MaxRadius
Density
Phase
Type SpeedLinesType
}
SpeedLines pattern generates manga-style speed lines.
type SpeedLinesType ¶ added in v0.0.2
type SpeedLinesType int
SpeedLinesType defines the type of speed lines (Radial or Linear).
const ( SpeedLinesRadial SpeedLinesType = iota SpeedLinesLinear )
type StartColor ¶ added in v0.0.2
StartColor configures the start color for a gradient.
func (*StartColor) SetStartColor ¶ added in v0.0.2
func (s *StartColor) SetStartColor(v color.Color)
type SubpixelLines ¶ added in v0.0.6
SubpixelLines renders alternating dark/light horizontal bands with subtle RGB channel offsets and a vignette falloff.
func (*SubpixelLines) SetLineThickness ¶ added in v0.0.6
func (p *SubpixelLines) SetLineThickness(thickness int)
func (*SubpixelLines) SetOffsetStrength ¶ added in v0.0.6
func (p *SubpixelLines) SetOffsetStrength(strength float64)
func (*SubpixelLines) SetVignetteRadius ¶ added in v0.0.6
func (p *SubpixelLines) SetVignetteRadius(radius float64)
type TextOption ¶ added in v0.0.2
type TextOption func(*textConfig)
func TextBackgroundColor ¶ added in v0.0.2
func TextBackgroundColor(bg image.Image) TextOption
func TextBackgroundColorColor ¶ added in v0.0.2
func TextBackgroundColorColor(bg color.Color) TextOption
func TextColor ¶ added in v0.0.2
func TextColor(fg image.Image) TextOption
func TextColorColor ¶ added in v0.0.2
func TextColorColor(fg color.Color) TextOption
func TextDPI ¶ added in v0.0.2
func TextDPI(dpi float64) TextOption
func TextSize ¶ added in v0.0.2
func TextSize(size float64) TextOption
type ThreadBands ¶ added in v0.0.6
type ThreadBands struct {
Null
ThreadWidth int
CrossShadowDepth float64
ColorVariance float64
LightThreadColor color.Color
DarkThreadColor color.Color
Seed
}
ThreadBands renders orthogonal thread bands with alternating tones and subtle fiber noise. The pattern simulates a simple weave with configurable thread width, shadow strength, and color variation.
func (*ThreadBands) SetColorVariance ¶ added in v0.0.6
func (t *ThreadBands) SetColorVariance(v float64)
func (*ThreadBands) SetCrossShadowDepth ¶ added in v0.0.6
func (t *ThreadBands) SetCrossShadowDepth(v float64)
func (*ThreadBands) SetDarkThreadColor ¶ added in v0.0.6
func (t *ThreadBands) SetDarkThreadColor(v color.Color)
func (*ThreadBands) SetLightThreadColor ¶ added in v0.0.6
func (t *ThreadBands) SetLightThreadColor(v color.Color)
func (*ThreadBands) SetThreadWidth ¶ added in v0.0.6
func (t *ThreadBands) SetThreadWidth(v int)
Option adapters for the ThreadBands pattern.
type ThreadColorVariance ¶ added in v0.0.6
type ThreadColorVariance struct{ Variance float64 }
func (*ThreadColorVariance) SetColorVariance ¶ added in v0.0.6
func (c *ThreadColorVariance) SetColorVariance(v float64)
type ThreadWidthOption ¶ added in v0.0.6
type ThreadWidthOption struct{ ThreadWidth int }
func (*ThreadWidthOption) SetThreadWidth ¶ added in v0.0.6
func (t *ThreadWidthOption) SetThreadWidth(v int)
type Tile ¶ added in v0.0.2
type Tile struct {
// contains filtered or unexported fields
}
func (*Tile) ColorModel ¶ added in v0.0.2
type Tilt ¶ added in v0.0.4
type Tilt struct {
Tilt float64
}
Tilt configures the tilt angle (usually X axis rotation).
type Transposed ¶
type Transposed struct {
// contains filtered or unexported fields
}
Transposed is a pattern that transposes the X and Y coordinates of an underlying image.
func (*Transposed) Bounds ¶
func (t *Transposed) Bounds() image.Rectangle
func (*Transposed) ColorModel ¶
func (t *Transposed) ColorModel() color.Model
type TrueColor ¶ added in v0.0.2
TrueColor configures the color used for "true" values in boolean/fuzzy operations.
func (*TrueColor) SetTrueColor ¶ added in v0.0.2
type VHS ¶ added in v0.0.2
type VHS struct {
Null
Image image.Image
ScanlineFrequency float64 // Frequency of the scanlines (e.g. 0.5 for every other line)
ScanlineIntensity float64 // Intensity of the scanline darkening (0.0 to 1.0)
ColorOffset int // Pixel offset for the red/blue channels
NoiseIntensity float64 // Intensity of the noise (0.0 to 1.0)
Seed int64 // Seed for the deterministic noise
// contains filtered or unexported fields
}
VHS applies a retro VHS effect with scanlines, chromatic aberration, and noise.
func (*VHS) SetColorOffset ¶ added in v0.0.2
func (*VHS) SetNoiseIntensity ¶ added in v0.0.2
func (*VHS) SetScanlineFrequency ¶ added in v0.0.2
func (*VHS) SetScanlineIntensity ¶ added in v0.0.2
func (*VHS) SetSeedUint64 ¶ added in v0.0.6
type VerticalLine ¶ added in v0.0.2
type VerticalLine struct {
Null
SpaceSize
LineSize
LineColor
SpaceColor
LineImageSource
Phase
}
VerticalLine is a pattern that draws vertical lines.
type Voronoi ¶ added in v0.0.2
Voronoi is a pattern that generates Voronoi cells based on a set of points and colors.
type Warp ¶ added in v0.0.3
type Warp struct {
Null
Source image.Image
Distortion image.Image
DistortionX image.Image
DistortionY image.Image
Scale float64
XScale float64
YScale float64
DistortionScale float64 // Scale factor for sampling the distortion image (zooming into noise)
}
Warp distorts the coordinates of the Source image using the Distortion image. It maps the color intensity of the Distortion image to a coordinate offset.
type WindRidges ¶ added in v0.0.6
type WindRidges struct {
Null
Noise image.Image
Angle float64
StreakLength int
Contrast float64
ShadowDistance float64
ShadowStrength float64
}
WindRidges turns white noise into stretched, wind-swept streaks with soft shadow ridges.
It starts from a noise source (default HashNoise), streaks it along a wind angle, then applies a subtle perpendicular shadow to give the impression of depth.
Tunable parameters:
- Angle: wind direction in degrees (0° is to the right, 90° is downward).
- StreakLength: how far each sample smears along the wind direction.
- Contrast: exponent applied to the final luminance for crisper ridges (>1) or softer (<1).
ShadowDistance and ShadowStrength are secondary controls to keep the ridges soft by default.
type WorleyNoise ¶ added in v0.0.3
type WorleyNoise struct {
Null
Seed
Frequency
Jitter float64
Metric DistanceMetric
Output WorleyOutput
}
WorleyNoise generates cellular noise (Worley noise).
type WorleyOutput ¶ added in v0.0.3
type WorleyOutput int
const ( OutputF1 WorleyOutput = iota OutputF2 OutputF2MinusF1 OutputCellID )
type WorleyTiles ¶ added in v0.0.6
type WorleyTiles struct {
Null
Seed
Frequency
StoneSize float64
GapWidth float64
PaletteSpread float64
Jitter float64
Palette []color.RGBA
}
WorleyTiles generates tiled Voronoi/Worley stones with mortar. Cells are rounded with a smooth transition near the gaps and each cell receives a small palette jitter for natural variation.
func (*WorleyTiles) Bounds ¶ added in v0.0.6
func (w *WorleyTiles) Bounds() image.Rectangle
func (*WorleyTiles) ColorModel ¶ added in v0.0.6
func (w *WorleyTiles) ColorModel() color.Model
type XorPattern ¶ added in v0.0.2
XorPattern generates an XOR texture pattern.
type Yliluoma1Dither ¶ added in v0.0.3
type Yliluoma1Dither struct {
Null
Input image.Image
Palette []color.Color
Matrix []float64 // 0..1 values
Size int // e.g. 8 for 8x8
// contains filtered or unexported fields
}
Yliluoma1Dither implements Yliluoma's ordered dithering algorithm 1. It mixes two colors from the palette to approximate the input color.
type Yliluoma2Dither ¶ added in v0.0.3
type Yliluoma2Dither struct {
Null
Input image.Image
Palette []color.Color
Matrix []float64
Size int
// contains filtered or unexported fields
}
Yliluoma2Dither implements Yliluoma's ordered dithering algorithm 2. It builds a candidate list of colors that average to the input color.
Source Files
¶
- bayer2x2_example.go
- bitwise_example.go
- blend.go
- bluenoise.go
- bluenoise_example.go
- boolean.go
- boolean_example.go
- boolean_modes_example.go
- brick.go
- brick_example.go
- brick_weathered.go
- brick_weathered_example.go
- buffer.go
- buffer_example.go
- camouflage_example.go
- candy_example.go
- cells_example.go
- checker.go
- checker_example.go
- chunky_bands.go
- chunky_bands_example.go
- circle.go
- circle_example.go
- clouds_example.go
- color_map.go
- color_map_example.go
- concentric_rings.go
- concentric_rings_example.go
- concentric_water.go
- concentric_water_example.go
- cracked_mud_example.go
- crop.go
- crosshatch.go
- crosshatch_example.go
- damascus_example.go
- dirt_example.go
- dither.go
- dither_color_reduction_example.go
- dither_example.go
- dither_ordered.go
- dither_ordered_example.go
- dither_stages_example.go
- dither_windows_example.go
- dither_yliluoma.go
- dither_yliluoma_example.go
- edgedetect.go
- edgedetect_example.go
- fibonacci.go
- fibonacci_example.go
- fine_grid.go
- fine_grid_example.go
- floor_example.go
- fog.go
- fog_example.go
- globe.go
- globe_example.go
- glyph_ring.go
- glyph_ring_example.go
- gopher.go
- gopher_example.go
- gradient.go
- gradient_example.go
- gradient_quantize_example.go
- grass_close.go
- grass_close_example.go
- grass_example.go
- grid.go
- grid_example.go
- grid_rows_example.go
- grid_unbounded_example.go
- hash.go
- heatmap.go
- heatmap_example.go
- hex_grid.go
- hex_grid_example.go
- islands_example.go
- lava_example.go
- lines.go
- lines_example.go
- material.go
- material_example.go
- maths.go
- maths_example.go
- metal_example.go
- mirror.go
- mirror_example.go
- modulo_stripe.go
- modulo_stripe_example.go
- molecules_example.go
- mud_tracks_example.go
- noise.go
- noise_example.go
- normal_map.go
- normal_map_example.go
- null.go
- null_example.go
- ops.go
- options.go
- options_falloff.go
- padding.go
- padding_example.go
- painted_planks.go
- painted_planks_example.go
- pcbtraces.go
- pcbtraces_example.go
- pebbles_example.go
- plasma.go
- plasma_example.go
- polka.go
- polka_example.go
- quantize.go
- quantize_example.go
- recipes_example.go
- rect.go
- rect_example.go
- registry.go
- road_example.go
- rotate.go
- rotate_example.go
- sand_example.go
- scale.go
- scales.go
- scales_example.go
- scatter.go
- screentone.go
- screentone_example.go
- seed.go
- shojo.go
- shojo_example.go
- sierpinski.go
- sierpinski_example.go
- simplezoom.go
- simplezoom_example.go
- slate_example.go
- snow_example.go
- speedlines.go
- speedlines_example.go
- starfield_example.go
- stone_example.go
- stones_example.go
- subpixel_lines.go
- subpixel_lines_example.go
- text.go
- thread_bands.go
- thread_bands_example.go
- tile.go
- tile_example.go
- tile_worley.go
- tile_worley_example.go
- transposed.go
- transposed_example.go
- utils.go
- vhs.go
- vhs_example.go
- voronoi.go
- voronoi_example.go
- voronoi_tiles.go
- voronoi_tiles_example.go
- warp.go
- warp_example.go
- water_example.go
- wind.go
- wind_example.go
- wood_example.go
- worley.go
- worley_example.go
- xor_pattern.go
- xor_pattern_example.go
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
bootstrap
command
|
|
|
pattern-cli
command
|
|
|
pkg
|
|
|
pattern-cli
Code generated by cmd/bootstrap/main.go; DO NOT EDIT.
|
Code generated by cmd/bootstrap/main.go; DO NOT EDIT. |
















































































































































