Add 1d noise versions, Gaussian noise, noise gradients, 4D fractal functions
This commit is contained in:
33
orx-noise/src/test/kotlin/TestGradient.kt
Normal file
33
orx-noise/src/test/kotlin/TestGradient.kt
Normal file
@@ -0,0 +1,33 @@
|
||||
import org.openrndr.extra.noise.*
|
||||
import org.spekframework.spek2.Spek
|
||||
import org.spekframework.spek2.style.specification.describe
|
||||
import kotlin.test.assertEquals
|
||||
|
||||
object TestGradient : Spek({
|
||||
describe("Noise") {
|
||||
it("has a gradient") {
|
||||
gradient(::perlinLinear, 100, 0.1)
|
||||
}
|
||||
}
|
||||
|
||||
describe("FBM noise func") {
|
||||
it("has a gradient") {
|
||||
val func = fbmFunc1D(::perlinLinear)
|
||||
gradient(func, 100, 0.1)
|
||||
}
|
||||
}
|
||||
|
||||
describe("Billow noise func") {
|
||||
it("has a gradient") {
|
||||
val func = billowFunc1D(::perlinLinear)
|
||||
gradient(func, 100, 0.1)
|
||||
}
|
||||
}
|
||||
|
||||
describe("Rigid noise func") {
|
||||
it("has a gradient") {
|
||||
val func = rigidFunc1D(::perlinLinear)
|
||||
gradient(func, 100, 0.1)
|
||||
}
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user