NoiseGo - Implementation of Improved Perlin Noise in Golang

NoiseGo

Implementation of Improved Perlin Noise in Golang.

NoiseGo is written only around 120 lines of Go (in version : 1.0.0).

Preview

Usage

< arguments > // seed : Seed value of noise // maxValue : Maximum coordinate value (NOT float64) // -When you queried a noise value with coodinate // which is greater than maxValue or less than 0.0, // the return value will be looped (See below comparison). nz := noise.New(100, 256) // noise.Get(x, y float64) float64 // - Get noise value with coordinate(x, y) r1 := nz.Get(200.2, 81.4) // noise.GetOctaved(x, y float64, octaves int, persistence float64) float64 // - Get octaved noise value with coordinate(x, y) and parameters(octaves, persistence) r2 := nz.GetOctaved(200.2, 81.4, 10, 0.5) }">
import(
    noise "github.com/TadaTeruki/NoiseGo/Noise"
)

func main(){
//  noise.New(seed int64, maxValue uint64) noise.Noise             
//   - Initialize noise generator                     
//  < arguments >                                     
//      seed : Seed value of noise            
//      maxValue : Maximum coordinate value (NOT float64)
//                 -When you queried a noise value with coodinate
//                  which is greater than maxValue or less than 0.0,
//                  the return value will be looped (See below comparison).
    nz := noise.New(100, 256)
    
    
// noise.Get(x, y float64) float64
//  - Get noise value with coordinate(x, y)
    r1 := nz.Get(200.2, 81.4)
    
// noise.GetOctaved(x, y float64, octaves int, persistence float64) float64
//  - Get octaved noise value with coordinate(x, y) and parameters(octaves, persistence)
    r2 := nz.GetOctaved(200.2, 81.4, 10, 0.5)
 
}
maxValue = 30 maxValue = 3

Installation

All you need to do is run:

 $ go get github.com/TadaTeruki/NoiseGo/Noise

References

LICENSE

MIT License
Copyright (c) 2022 Tada Teruki (多田 瑛貴)

Owner
Tada Teruki (多田 瑛貴)
Desktop environment for Linux / Geographic Information System
Tada Teruki (多田 瑛貴)
Similar Resources

a barcode creation lib for golang

Introduction This is a package for GO which can be used to create different types of barcodes. Supported Barcode Types 2 of 5 Aztec Code Codabar Code

Jan 3, 2023

A captcha library written in golang

A captcha library written in golang

gocaptcha 一个简单的Go语言实现的验证码 图片实例 简介 基于Golang实现的图片验证码生成库,可以实现随机字母个数,随机直线,随机噪点等。可以设置任意多字体,每个验证码随机选一种字体展示。 实例 使用: go get github.com/lifei6671/gocaptcha/

Dec 29, 2022

golang package to find the K most dominant/prominent colors in an image

golang package to find the K most dominant/prominent colors in an image

prominentcolor Find the K most dominant colors in an image The Kmeans function returns the K most dominant colors in the image, ordered in the order o

Nov 7, 2022

go chart is a basic charting library in native golang.

go chart is a basic charting library in native golang.

go-chart Package chart is a very simple golang native charting library that supports timeseries and continuous line charts. Master should now be on th

Dec 30, 2022

使用 Golang+Chrome+OpenCV 破解腾讯滑块验证码

使用 Golang+Chrome+OpenCV 破解腾讯滑块验证码

一、背景 滑块验证码是一项人机识别技术,操作简单,真人体验好,机器识别效果也不差,可以有效防止脚本做任务,增加机器脚本薅羊毛的难度。但其破解也相对简单,这里演示一个Demo,以了解。通过 OpenCV 匹配找出滑块位置,计算出滑动距离,然后模拟 js 鼠标事件,在 Chrome 控制台执行脚本,完成

Dec 28, 2022

🔍 gowitness - a golang, web screenshot utility using Chrome Headless

🔍 gowitness A golang, web screenshot utility using Chrome Headless. introduction gowitness is a website screenshot utility written in Golang, that us

Jan 9, 2023

golang aspect tool

golang aspect tool

简介 go-aspect是一个为golang提供切面编程可能性的工具,可以使用该工具,替换原有的go build来进行编译,将预先配置好的切面编织到目标代码中 效果图 安装方式 源码安装 下载源码到本地 切换到源码目录,运行 make install 使用简介 目前仅支持mod模式的工程 编织是基于

Mar 13, 2022

An image server toolkit in Go (Golang)

An image server toolkit in Go (Golang)

Image Server An image server toolkit in Go (Golang) Features HTTP server Resize (GIFT, nfnt resize, Graphicsmagick) Rotate Crop Convert (JPEG, GIF (an

Dec 22, 2022

Use Windows API to capture a image from a Webcam in GoLANG

Windows-API-Capture-Webcam Use Windows API to capture a image from a Webcam in GoLANG Other Go is a amazing and powerful programming language. If you

Aug 13, 2022
Related tags
NanoVGo NanoVGNanoVGo is pure golang implementation of NanoVG. The same author maintains the NanoGUI.go project mentioned above.

NanoVGo Pure golang implementation of NanoVG. NanoVG is a vector graphics engine inspired by HTML5 Canvas API. DEMO API Reference See GoDoc Porting Me

Dec 6, 2022
Golang implementation of the covid certificate QRCode decoder

Golang implementation of the covid certificates. At the moment it only includes DCC signed data decoding but I've planned to add a lot more of features related to certificates processing.

Sep 22, 2021
OpenStreetMap PBF golang parser

pbf OpenStreetMap PBF golang encoder/decoder A golang based OpenStreetMap PBF encoder/decoder with a handy command line utility, pbf. pbf Command Line

Oct 23, 2022
golang OpenGL helper functions

glh: golang OpenGL helpers This package contains a number of functions useful for applications using OpenGL. Code Reference Features Textures and Text

Apr 8, 2022
A library for playing with colors in go (golang).
A library for playing with colors in go (golang).

go-colorful A library for playing with colors in Go. Supports Go 1.13 onwards. Why? I love games. I make games. I love detail and I get lost in detail

Dec 30, 2022
Rasterx is an SVG 2.0 path compliant rasterizer that can use either the golang vector or a derivative of the freetype anti-aliaser.
Rasterx is an SVG 2.0 path compliant rasterizer that can use either the golang vector or a derivative of the freetype anti-aliaser.

rasterx Rasterx is a golang rasterizer that implements path stroking functions capable of SVG 2.0 compliant 'arc' joins and explicit loop closing. Pat

Nov 1, 2022
Pure golang image resizing
Pure golang image resizing

This package is no longer being updated! Please look for alternatives if that bothers you. Resize Image resizing for the Go programming language with

Jan 9, 2023
:triangular_ruler: Create beautiful generative image patterns from a string in golang.
:triangular_ruler: Create beautiful generative image patterns from a string in golang.

geopattern Create beautiful generative image patterns from a string in golang. Go port of Jason Long's awesome GeoPattern library. Read geopattern's d

Dec 29, 2022
Pure Golang Library that allows simple LSB steganography on images
Pure Golang Library that allows simple LSB steganography on images

Steganography Lib Steganography is a library written in Pure go to allow simple LSB steganography on images. It is capable of both encoding and decodi

Dec 22, 2022
GameBoy Color emulator written in golang.
GameBoy Color emulator written in golang.

?? Worldwide 日本語のドキュメントはこちら GameBoyColor emulator written in golang. This emulator can play almost all ROMs work without problems and has many feature

Dec 26, 2022