Remove unused imports
This commit is contained in:
@@ -1,11 +1,8 @@
|
|||||||
package colormatrix
|
package colormatrix
|
||||||
|
|
||||||
import org.openrndr.application
|
import org.openrndr.application
|
||||||
import org.openrndr.color.ColorRGBa
|
|
||||||
import org.openrndr.draw.loadImage
|
import org.openrndr.draw.loadImage
|
||||||
import org.openrndr.extra.color.colormatrix.colorMatrix
|
import org.openrndr.extra.color.colormatrix.colorMatrix
|
||||||
import org.openrndr.extra.color.spaces.OKHSV
|
|
||||||
import org.openrndr.extra.color.tools.shiftHue
|
|
||||||
import org.openrndr.extra.imageFit.imageFit
|
import org.openrndr.extra.imageFit.imageFit
|
||||||
import org.openrndr.extra.shapes.primitives.grid
|
import org.openrndr.extra.shapes.primitives.grid
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
package org.openrndr.extra.composition
|
package org.openrndr.extra.composition
|
||||||
|
|
||||||
import org.openrndr.draw.Drawer
|
import org.openrndr.draw.Drawer
|
||||||
import org.openrndr.shape.*
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -2,8 +2,6 @@
|
|||||||
|
|
||||||
package org.openrndr.extra.compositor
|
package org.openrndr.extra.compositor
|
||||||
|
|
||||||
import org.openrndr.Extension
|
|
||||||
import org.openrndr.Program
|
|
||||||
import org.openrndr.color.ColorRGBa
|
import org.openrndr.color.ColorRGBa
|
||||||
import org.openrndr.draw.*
|
import org.openrndr.draw.*
|
||||||
import org.openrndr.extra.fx.blend.SourceIn
|
import org.openrndr.extra.fx.blend.SourceIn
|
||||||
|
|||||||
@@ -13,7 +13,6 @@ import org.openrndr.extra.expressions.parser.KeyLangLexer.Tokens.RANGE_EXCLUSIVE
|
|||||||
import org.openrndr.extra.expressions.parser.KeyLangLexer.Tokens.RANGE_INCLUSIVE
|
import org.openrndr.extra.expressions.parser.KeyLangLexer.Tokens.RANGE_INCLUSIVE
|
||||||
import org.openrndr.extra.expressions.parser.KeyLangParser
|
import org.openrndr.extra.expressions.parser.KeyLangParser
|
||||||
import org.openrndr.extra.expressions.parser.KeyLangParserBaseListener
|
import org.openrndr.extra.expressions.parser.KeyLangParserBaseListener
|
||||||
import org.openrndr.extra.noise.uniform
|
|
||||||
import org.openrndr.math.*
|
import org.openrndr.math.*
|
||||||
import kotlin.math.PI
|
import kotlin.math.PI
|
||||||
import kotlin.math.roundToInt
|
import kotlin.math.roundToInt
|
||||||
|
|||||||
@@ -8,12 +8,9 @@ import org.openrndr.extra.fx.fx_bloom_combine
|
|||||||
import org.openrndr.extra.fx.fx_bloom_downscale
|
import org.openrndr.extra.fx.fx_bloom_downscale
|
||||||
import org.openrndr.extra.fx.fx_bloom_upscale
|
import org.openrndr.extra.fx.fx_bloom_upscale
|
||||||
import org.openrndr.extra.fx.mppFilterShader
|
import org.openrndr.extra.fx.mppFilterShader
|
||||||
import org.openrndr.extra.parameters.BooleanParameter
|
|
||||||
import org.openrndr.extra.parameters.Description
|
import org.openrndr.extra.parameters.Description
|
||||||
import org.openrndr.extra.parameters.DoubleParameter
|
import org.openrndr.extra.parameters.DoubleParameter
|
||||||
import org.openrndr.extra.parameters.IntParameter
|
import org.openrndr.extra.parameters.IntParameter
|
||||||
import org.openrndr.filter.color.delinearize
|
|
||||||
import org.openrndr.filter.color.linearize
|
|
||||||
import org.openrndr.shape.Rectangle
|
import org.openrndr.shape.Rectangle
|
||||||
|
|
||||||
class BloomDownscale : Filter(mppFilterShader(fx_bloom_downscale,"bloom-downscale"))
|
class BloomDownscale : Filter(mppFilterShader(fx_bloom_downscale,"bloom-downscale"))
|
||||||
|
|||||||
@@ -5,7 +5,6 @@ package org.openrndr.extra.fx.distort
|
|||||||
import org.openrndr.draw.Filter1to1
|
import org.openrndr.draw.Filter1to1
|
||||||
import org.openrndr.extra.fx.fx_video_glitch
|
import org.openrndr.extra.fx.fx_video_glitch
|
||||||
import org.openrndr.extra.fx.mppFilterShader
|
import org.openrndr.extra.fx.mppFilterShader
|
||||||
import org.openrndr.extra.parameters.BooleanParameter
|
|
||||||
import org.openrndr.extra.parameters.Description
|
import org.openrndr.extra.parameters.Description
|
||||||
import org.openrndr.extra.parameters.DoubleParameter
|
import org.openrndr.extra.parameters.DoubleParameter
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
//import org.openrndr.application
|
//import org.openrndr.application
|
||||||
//import org.openrndr.color.ColorRGBa
|
//import org.openrndr.color.ColorRGBa
|
||||||
//import org.openrndr.extensions.SingleScreenshot
|
|
||||||
//import org.openrndr.extra.compositor.compose
|
//import org.openrndr.extra.compositor.compose
|
||||||
//import org.openrndr.extra.compositor.draw
|
//import org.openrndr.extra.compositor.draw
|
||||||
//import org.openrndr.extra.compositor.layer
|
//import org.openrndr.extra.compositor.layer
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
//import org.openrndr.application
|
//import org.openrndr.application
|
||||||
//import org.openrndr.color.ColorRGBa
|
//import org.openrndr.color.ColorRGBa
|
||||||
//import org.openrndr.extensions.SingleScreenshot
|
|
||||||
//import org.openrndr.extra.dnk3.dsl.*
|
//import org.openrndr.extra.dnk3.dsl.*
|
||||||
//import org.openrndr.extra.dnk3.renderers.dryRenderer
|
//import org.openrndr.extra.dnk3.renderers.dryRenderer
|
||||||
//import org.openrndr.extra.dnk3.tools.addSkybox
|
//import org.openrndr.extra.dnk3.tools.addSkybox
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
//import org.openrndr.application
|
//import org.openrndr.application
|
||||||
//import org.openrndr.color.ColorRGBa
|
//import org.openrndr.color.ColorRGBa
|
||||||
//import org.openrndr.extensions.SingleScreenshot
|
|
||||||
//import org.openrndr.extra.dnk3.dsl.*
|
//import org.openrndr.extra.dnk3.dsl.*
|
||||||
//import org.openrndr.extra.dnk3.renderers.dryRenderer
|
//import org.openrndr.extra.dnk3.renderers.dryRenderer
|
||||||
//import org.openrndr.extra.dnk3.tools.addSkybox
|
//import org.openrndr.extra.dnk3.tools.addSkybox
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
//
|
//
|
||||||
//import org.openrndr.application
|
//import org.openrndr.application
|
||||||
//import org.openrndr.extensions.Screenshots
|
//import org.openrndr.extensions.Screenshots
|
||||||
//import org.openrndr.extensions.SingleScreenshot
|
|
||||||
//import org.openrndr.extra.gitarchiver.GitArchiver
|
//import org.openrndr.extra.gitarchiver.GitArchiver
|
||||||
//
|
//
|
||||||
//fun main() = application {
|
//fun main() = application {
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
import org.openrndr.application
|
import org.openrndr.application
|
||||||
import org.openrndr.color.ColorRGBa
|
import org.openrndr.color.ColorRGBa
|
||||||
import org.openrndr.extensions.SingleScreenshot
|
|
||||||
import org.openrndr.extra.gui.GUI
|
import org.openrndr.extra.gui.GUI
|
||||||
import org.openrndr.extra.gui.GUIAppearance
|
import org.openrndr.extra.gui.GUIAppearance
|
||||||
import org.openrndr.extra.parameters.*
|
import org.openrndr.extra.parameters.*
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
import org.openrndr.application
|
import org.openrndr.application
|
||||||
import org.openrndr.extensions.SingleScreenshot
|
|
||||||
import org.openrndr.extra.keyframer.Keyframer
|
import org.openrndr.extra.keyframer.Keyframer
|
||||||
import org.openrndr.resourceUrl
|
import org.openrndr.resourceUrl
|
||||||
import java.net.URL
|
import java.net.URL
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
import org.openrndr.application
|
import org.openrndr.application
|
||||||
import org.openrndr.extensions.SingleScreenshot
|
|
||||||
import org.openrndr.extra.keyframer.Keyframer
|
import org.openrndr.extra.keyframer.Keyframer
|
||||||
import org.openrndr.extra.keyframer.KeyframerFormat
|
import org.openrndr.extra.keyframer.KeyframerFormat
|
||||||
import org.openrndr.resourceUrl
|
import org.openrndr.resourceUrl
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
import org.openrndr.application
|
import org.openrndr.application
|
||||||
import org.openrndr.extensions.SingleScreenshot
|
|
||||||
import org.openrndr.extra.keyframer.Keyframer
|
import org.openrndr.extra.keyframer.Keyframer
|
||||||
import org.openrndr.panel.controlManager
|
import org.openrndr.panel.controlManager
|
||||||
import org.openrndr.panel.elements.Range
|
import org.openrndr.panel.elements.Range
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
import org.openrndr.application
|
import org.openrndr.application
|
||||||
import org.openrndr.extensions.SingleScreenshot
|
|
||||||
import org.openrndr.extra.keyframer.Keyframer
|
import org.openrndr.extra.keyframer.Keyframer
|
||||||
import org.openrndr.resourceUrl
|
import org.openrndr.resourceUrl
|
||||||
import java.net.URL
|
import java.net.URL
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
import org.openrndr.application
|
import org.openrndr.application
|
||||||
import org.openrndr.extensions.SingleScreenshot
|
|
||||||
import org.openrndr.extra.keyframer.Keyframer
|
import org.openrndr.extra.keyframer.Keyframer
|
||||||
import org.openrndr.resourceUrl
|
import org.openrndr.resourceUrl
|
||||||
import java.net.URL
|
import java.net.URL
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
import org.openrndr.application
|
import org.openrndr.application
|
||||||
import org.openrndr.extensions.SingleScreenshot
|
|
||||||
import org.openrndr.extra.keyframer.Keyframer
|
import org.openrndr.extra.keyframer.Keyframer
|
||||||
import org.openrndr.resourceUrl
|
import org.openrndr.resourceUrl
|
||||||
import java.net.URL
|
import java.net.URL
|
||||||
|
|||||||
@@ -4,7 +4,6 @@ import org.openrndr.Extension
|
|||||||
import org.openrndr.Program
|
import org.openrndr.Program
|
||||||
import org.openrndr.color.ColorRGBa
|
import org.openrndr.color.ColorRGBa
|
||||||
import org.openrndr.draw.Drawer
|
import org.openrndr.draw.Drawer
|
||||||
import org.openrndr.draw.loadFont
|
|
||||||
import org.openrndr.draw.loadFontImageMap
|
import org.openrndr.draw.loadFontImageMap
|
||||||
import org.openrndr.math.Vector2
|
import org.openrndr.math.Vector2
|
||||||
import org.openrndr.shape.Rectangle
|
import org.openrndr.shape.Rectangle
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
import org.openrndr.application
|
import org.openrndr.application
|
||||||
import org.openrndr.color.ColorRGBa
|
import org.openrndr.color.ColorRGBa
|
||||||
import org.openrndr.color.Linearity
|
import org.openrndr.color.Linearity
|
||||||
import org.openrndr.extensions.SingleScreenshot
|
|
||||||
import org.openrndr.math.Spherical
|
import org.openrndr.math.Spherical
|
||||||
import org.openrndr.math.Vector3
|
import org.openrndr.math.Vector3
|
||||||
import org.openrndr.panel.controlManager
|
import org.openrndr.panel.controlManager
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
import org.openrndr.application
|
import org.openrndr.application
|
||||||
import org.openrndr.color.ColorRGBa
|
import org.openrndr.color.ColorRGBa
|
||||||
import org.openrndr.extensions.SingleScreenshot
|
|
||||||
import org.openrndr.panel.controlManager
|
import org.openrndr.panel.controlManager
|
||||||
import org.openrndr.panel.elements.div
|
import org.openrndr.panel.elements.div
|
||||||
import org.openrndr.panel.elements.slider
|
import org.openrndr.panel.elements.slider
|
||||||
|
|||||||
@@ -2,7 +2,6 @@ import com.google.gson.Gson
|
|||||||
import org.openrndr.application
|
import org.openrndr.application
|
||||||
import org.openrndr.dialogs.openFileDialog
|
import org.openrndr.dialogs.openFileDialog
|
||||||
import org.openrndr.dialogs.saveFileDialog
|
import org.openrndr.dialogs.saveFileDialog
|
||||||
import org.openrndr.extensions.SingleScreenshot
|
|
||||||
import org.openrndr.panel.controlManager
|
import org.openrndr.panel.controlManager
|
||||||
import org.openrndr.panel.elements.*
|
import org.openrndr.panel.elements.*
|
||||||
import org.openrndr.panel.style.*
|
import org.openrndr.panel.style.*
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
import org.openrndr.application
|
import org.openrndr.application
|
||||||
import org.openrndr.extensions.SingleScreenshot
|
|
||||||
import org.openrndr.panel.controlManager
|
import org.openrndr.panel.controlManager
|
||||||
import org.openrndr.panel.elements.*
|
import org.openrndr.panel.elements.*
|
||||||
import org.openrndr.panel.style.*
|
import org.openrndr.panel.style.*
|
||||||
|
|||||||
@@ -1,19 +1,17 @@
|
|||||||
package org.openrndr.panel.elements
|
package org.openrndr.panel.elements
|
||||||
|
|
||||||
import org.openrndr.color.ColorRGBa
|
|
||||||
import org.openrndr.draw.Drawer
|
|
||||||
import org.openrndr.draw.FontImageMap
|
|
||||||
import org.openrndr.panel.style.*
|
|
||||||
import org.openrndr.shape.Rectangle
|
|
||||||
import org.openrndr.extra.textwriter.TextWriter
|
|
||||||
import kotlinx.coroutines.yield
|
import kotlinx.coroutines.yield
|
||||||
import org.openrndr.KEY_ARROW_DOWN
|
import org.openrndr.KEY_ARROW_DOWN
|
||||||
import org.openrndr.KEY_ARROW_UP
|
import org.openrndr.KEY_ARROW_UP
|
||||||
import org.openrndr.KEY_ENTER
|
import org.openrndr.KEY_ENTER
|
||||||
|
import org.openrndr.color.ColorRGBa
|
||||||
|
import org.openrndr.draw.Drawer
|
||||||
import org.openrndr.draw.loadFont
|
import org.openrndr.draw.loadFont
|
||||||
|
|
||||||
import org.openrndr.events.Event
|
import org.openrndr.events.Event
|
||||||
|
import org.openrndr.extra.textwriter.TextWriter
|
||||||
import org.openrndr.launch
|
import org.openrndr.launch
|
||||||
|
import org.openrndr.panel.style.*
|
||||||
|
import org.openrndr.shape.Rectangle
|
||||||
import kotlin.math.max
|
import kotlin.math.max
|
||||||
import kotlin.math.min
|
import kotlin.math.min
|
||||||
import kotlin.math.roundToInt
|
import kotlin.math.roundToInt
|
||||||
|
|||||||
@@ -3,7 +3,6 @@ package org.openrndr.panel.elements
|
|||||||
import kotlinx.coroutines.yield
|
import kotlinx.coroutines.yield
|
||||||
import org.openrndr.color.ColorRGBa
|
import org.openrndr.color.ColorRGBa
|
||||||
import org.openrndr.draw.Drawer
|
import org.openrndr.draw.Drawer
|
||||||
import org.openrndr.draw.FontImageMap
|
|
||||||
import org.openrndr.draw.loadFont
|
import org.openrndr.draw.loadFont
|
||||||
import org.openrndr.extra.textwriter.TextWriter
|
import org.openrndr.extra.textwriter.TextWriter
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,6 @@ package org.openrndr.panel.elements
|
|||||||
|
|
||||||
import kotlinx.coroutines.*
|
import kotlinx.coroutines.*
|
||||||
import org.openrndr.draw.Drawer
|
import org.openrndr.draw.Drawer
|
||||||
import org.openrndr.draw.FontImageMap
|
|
||||||
import org.openrndr.draw.LineCap
|
import org.openrndr.draw.LineCap
|
||||||
import org.openrndr.draw.loadFont
|
import org.openrndr.draw.loadFont
|
||||||
import org.openrndr.panel.style.*
|
import org.openrndr.panel.style.*
|
||||||
|
|||||||
@@ -2,7 +2,6 @@ package org.openrndr.panel.tools
|
|||||||
|
|
||||||
import org.openrndr.color.ColorRGBa
|
import org.openrndr.color.ColorRGBa
|
||||||
import org.openrndr.draw.Drawer
|
import org.openrndr.draw.Drawer
|
||||||
import org.openrndr.draw.FontImageMap
|
|
||||||
import org.openrndr.draw.isolated
|
import org.openrndr.draw.isolated
|
||||||
import org.openrndr.draw.loadFont
|
import org.openrndr.draw.loadFont
|
||||||
import org.openrndr.extra.textwriter.writer
|
import org.openrndr.extra.textwriter.writer
|
||||||
|
|||||||
@@ -8,7 +8,6 @@ import org.openrndr.draw.ColorType
|
|||||||
import org.openrndr.draw.colorBuffer
|
import org.openrndr.draw.colorBuffer
|
||||||
import org.openrndr.draw.isolatedWithTarget
|
import org.openrndr.draw.isolatedWithTarget
|
||||||
import org.openrndr.draw.renderTarget
|
import org.openrndr.draw.renderTarget
|
||||||
import org.openrndr.extra.noise.Random
|
|
||||||
import org.openrndr.extra.noise.uniform
|
import org.openrndr.extra.noise.uniform
|
||||||
import org.openrndr.math.Polar
|
import org.openrndr.math.Polar
|
||||||
import org.openrndr.math.clamp
|
import org.openrndr.math.clamp
|
||||||
|
|||||||
@@ -10,7 +10,6 @@ import org.openrndr.internal.Driver
|
|||||||
|
|
||||||
import org.openrndr.internal.gl3.ColorBufferGL3
|
import org.openrndr.internal.gl3.ColorBufferGL3
|
||||||
import org.openrndr.internal.gl3.DriverTypeGL
|
import org.openrndr.internal.gl3.DriverTypeGL
|
||||||
import org.openrndr.internal.gl3.TextureStorageModeGL
|
|
||||||
import org.openrndr.internal.gl3.glType
|
import org.openrndr.internal.gl3.glType
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,6 @@ import org.openrndr.math.Vector2
|
|||||||
import org.openrndr.math.IntVector2
|
import org.openrndr.math.IntVector2
|
||||||
import org.openrndr.math.Vector3
|
import org.openrndr.math.Vector3
|
||||||
import org.openrndr.math.Vector4
|
import org.openrndr.math.Vector4
|
||||||
import kotlin.jvm.JvmName
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -3,7 +3,6 @@ package org.openrndr.extra.meshgenerators
|
|||||||
import org.openrndr.draw.*
|
import org.openrndr.draw.*
|
||||||
import org.openrndr.math.Vector2
|
import org.openrndr.math.Vector2
|
||||||
import org.openrndr.math.Vector3
|
import org.openrndr.math.Vector3
|
||||||
import org.openrndr.math.mod
|
|
||||||
import org.openrndr.shape.Shape
|
import org.openrndr.shape.Shape
|
||||||
import org.openrndr.shape.triangulate
|
import org.openrndr.shape.triangulate
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,6 @@ package org.openrndr.extra.mesh.noise
|
|||||||
import org.openrndr.extra.noise.fhash1D
|
import org.openrndr.extra.noise.fhash1D
|
||||||
import org.openrndr.math.Vector3
|
import org.openrndr.math.Vector3
|
||||||
import kotlin.math.sqrt
|
import kotlin.math.sqrt
|
||||||
import kotlin.random.Random
|
|
||||||
|
|
||||||
typealias Barycentric = Vector3
|
typealias Barycentric = Vector3
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
package org.openrndr.extra.noise.shapes
|
package org.openrndr.extra.noise.shapes
|
||||||
|
|
||||||
import org.openrndr.extra.noise.fhash1D
|
import org.openrndr.extra.noise.fhash1D
|
||||||
import org.openrndr.extra.noise.hash
|
|
||||||
import org.openrndr.math.Polar
|
import org.openrndr.math.Polar
|
||||||
import org.openrndr.math.Vector2
|
import org.openrndr.math.Vector2
|
||||||
import org.openrndr.shape.Circle
|
import org.openrndr.shape.Circle
|
||||||
|
|||||||
@@ -6,12 +6,8 @@ import org.openrndr.draw.DrawPrimitive
|
|||||||
import org.openrndr.draw.isolated
|
import org.openrndr.draw.isolated
|
||||||
import org.openrndr.extra.camera.Orbital
|
import org.openrndr.extra.camera.Orbital
|
||||||
import org.openrndr.extra.meshgenerators.sphereMesh
|
import org.openrndr.extra.meshgenerators.sphereMesh
|
||||||
import org.openrndr.extra.noise.rsequence.rSeq3D
|
|
||||||
import org.openrndr.extra.noise.rsequence.rSeq4D
|
import org.openrndr.extra.noise.rsequence.rSeq4D
|
||||||
import org.openrndr.math.Vector3
|
|
||||||
import org.openrndr.math.Vector4
|
import org.openrndr.math.Vector4
|
||||||
import kotlin.math.abs
|
|
||||||
import kotlin.math.min
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Demo that presents a 3D visualization of points distributed using a 4D quasirandom sequence (R4).
|
* Demo that presents a 3D visualization of points distributed using a 4D quasirandom sequence (R4).
|
||||||
|
|||||||
@@ -4,10 +4,8 @@ import org.openrndr.application
|
|||||||
import org.openrndr.color.ColorRGBa
|
import org.openrndr.color.ColorRGBa
|
||||||
import org.openrndr.draw.isolated
|
import org.openrndr.draw.isolated
|
||||||
import org.openrndr.extra.math.simplexrange.SimplexRange2D
|
import org.openrndr.extra.math.simplexrange.SimplexRange2D
|
||||||
import org.openrndr.extra.math.simplexrange.SimplexRange3D
|
|
||||||
import org.openrndr.extra.noise.scatter
|
import org.openrndr.extra.noise.scatter
|
||||||
import kotlin.random.Random
|
import kotlin.random.Random
|
||||||
import org.openrndr.extra.noise.simplexrange.uniformSimplex
|
|
||||||
import org.openrndr.math.Polar
|
import org.openrndr.math.Polar
|
||||||
import org.openrndr.math.Vector2
|
import org.openrndr.math.Vector2
|
||||||
import org.openrndr.shape.Rectangle
|
import org.openrndr.shape.Rectangle
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
import io.kotest.core.spec.style.DescribeSpec
|
import io.kotest.core.spec.style.DescribeSpec
|
||||||
import org.openrndr.extra.noise.*
|
import org.openrndr.extra.noise.*
|
||||||
import kotlin.test.assertEquals
|
|
||||||
|
|
||||||
class TestGradient : DescribeSpec({
|
class TestGradient : DescribeSpec({
|
||||||
describe("Noise") {
|
describe("Noise") {
|
||||||
|
|||||||
@@ -4,7 +4,6 @@ import org.openrndr.draw.Drawer
|
|||||||
import org.openrndr.draw.RectangleBatchBuilder
|
import org.openrndr.draw.RectangleBatchBuilder
|
||||||
import org.openrndr.math.Vector2
|
import org.openrndr.math.Vector2
|
||||||
import org.openrndr.shape.Rectangle
|
import org.openrndr.shape.Rectangle
|
||||||
import org.openrndr.shape.intersects
|
|
||||||
import kotlin.jvm.JvmRecord
|
import kotlin.jvm.JvmRecord
|
||||||
|
|
||||||
@JvmRecord
|
@JvmRecord
|
||||||
|
|||||||
@@ -6,7 +6,6 @@ import org.openrndr.extra.shaderphrases.sdf.sdEllipsePhrase
|
|||||||
import org.openrndr.math.CastableToVector4
|
import org.openrndr.math.CastableToVector4
|
||||||
import org.openrndr.math.Vector2
|
import org.openrndr.math.Vector2
|
||||||
import org.openrndr.math.Vector4
|
import org.openrndr.math.Vector4
|
||||||
import kotlin.math.PI
|
|
||||||
import kotlin.reflect.KClass
|
import kotlin.reflect.KClass
|
||||||
|
|
||||||
class EllipticalGradient<C>(
|
class EllipticalGradient<C>(
|
||||||
|
|||||||
@@ -9,8 +9,6 @@ import org.openrndr.extra.shapes.primitives.grid
|
|||||||
import org.openrndr.extra.shapes.primitives.placeIn
|
import org.openrndr.extra.shapes.primitives.placeIn
|
||||||
import org.openrndr.math.Vector2
|
import org.openrndr.math.Vector2
|
||||||
import org.openrndr.math.transforms.transform
|
import org.openrndr.math.transforms.transform
|
||||||
import kotlin.math.PI
|
|
||||||
import kotlin.math.cos
|
|
||||||
|
|
||||||
fun main() = application {
|
fun main() = application {
|
||||||
configure {
|
configure {
|
||||||
|
|||||||
@@ -2,7 +2,6 @@ package gradients
|
|||||||
|
|
||||||
import org.openrndr.application
|
import org.openrndr.application
|
||||||
import org.openrndr.color.ColorRGBa
|
import org.openrndr.color.ColorRGBa
|
||||||
import org.openrndr.extra.color.presets.BLUE_STEEL
|
|
||||||
import org.openrndr.extra.color.spaces.OKHSV
|
import org.openrndr.extra.color.spaces.OKHSV
|
||||||
import org.openrndr.extra.color.tools.shiftHue
|
import org.openrndr.extra.color.tools.shiftHue
|
||||||
import org.openrndr.extra.shadestyles.fills.SpreadMethod
|
import org.openrndr.extra.shadestyles.fills.SpreadMethod
|
||||||
|
|||||||
@@ -2,7 +2,6 @@ package gradients
|
|||||||
|
|
||||||
import org.openrndr.application
|
import org.openrndr.application
|
||||||
import org.openrndr.color.ColorRGBa
|
import org.openrndr.color.ColorRGBa
|
||||||
import org.openrndr.draw.loadFont
|
|
||||||
import org.openrndr.extra.color.presets.BLUE_STEEL
|
import org.openrndr.extra.color.presets.BLUE_STEEL
|
||||||
import org.openrndr.extra.shadestyles.fills.FillUnits
|
import org.openrndr.extra.shadestyles.fills.FillUnits
|
||||||
import org.openrndr.extra.shadestyles.fills.SpreadMethod
|
import org.openrndr.extra.shadestyles.fills.SpreadMethod
|
||||||
|
|||||||
@@ -2,8 +2,6 @@ package gradients
|
|||||||
|
|
||||||
import org.openrndr.application
|
import org.openrndr.application
|
||||||
import org.openrndr.color.ColorRGBa
|
import org.openrndr.color.ColorRGBa
|
||||||
import org.openrndr.draw.loadFont
|
|
||||||
import org.openrndr.extra.color.presets.BLUE_STEEL
|
|
||||||
import org.openrndr.extra.shadestyles.fills.FillUnits
|
import org.openrndr.extra.shadestyles.fills.FillUnits
|
||||||
import org.openrndr.extra.shadestyles.fills.SpreadMethod
|
import org.openrndr.extra.shadestyles.fills.SpreadMethod
|
||||||
import org.openrndr.extra.shadestyles.fills.gradients.gradient
|
import org.openrndr.extra.shadestyles.fills.gradients.gradient
|
||||||
|
|||||||
@@ -2,18 +2,13 @@ package gradients
|
|||||||
|
|
||||||
import org.openrndr.application
|
import org.openrndr.application
|
||||||
import org.openrndr.color.ColorRGBa
|
import org.openrndr.color.ColorRGBa
|
||||||
import org.openrndr.draw.loadFont
|
|
||||||
import org.openrndr.extra.camera.Camera2D
|
import org.openrndr.extra.camera.Camera2D
|
||||||
import org.openrndr.extra.color.presets.BLUE_STEEL
|
|
||||||
import org.openrndr.extra.shadestyles.fills.FillFit
|
import org.openrndr.extra.shadestyles.fills.FillFit
|
||||||
import org.openrndr.extra.shadestyles.fills.FillUnits
|
import org.openrndr.extra.shadestyles.fills.FillUnits
|
||||||
import org.openrndr.extra.shadestyles.fills.SpreadMethod
|
import org.openrndr.extra.shadestyles.fills.SpreadMethod
|
||||||
import org.openrndr.extra.shadestyles.fills.gradients.gradient
|
import org.openrndr.extra.shadestyles.fills.gradients.gradient
|
||||||
import org.openrndr.extra.shapes.primitives.grid
|
import org.openrndr.extra.shapes.primitives.grid
|
||||||
import org.openrndr.math.Vector2
|
import org.openrndr.math.Vector2
|
||||||
import kotlin.math.PI
|
|
||||||
import kotlin.math.cos
|
|
||||||
import kotlin.math.sin
|
|
||||||
|
|
||||||
fun main() = application {
|
fun main() = application {
|
||||||
configure {
|
configure {
|
||||||
|
|||||||
@@ -2,10 +2,7 @@ package image
|
|||||||
|
|
||||||
import org.openrndr.application
|
import org.openrndr.application
|
||||||
import org.openrndr.draw.loadImage
|
import org.openrndr.draw.loadImage
|
||||||
import org.openrndr.extra.shadestyles.fills.FillUnits
|
|
||||||
import org.openrndr.extra.shadestyles.fills.SpreadMethod
|
|
||||||
import org.openrndr.extra.shadestyles.fills.image.imageFill
|
import org.openrndr.extra.shadestyles.fills.image.imageFill
|
||||||
import org.openrndr.math.transforms.transform
|
|
||||||
|
|
||||||
fun main() = application {
|
fun main() = application {
|
||||||
configure {
|
configure {
|
||||||
@@ -13,7 +10,7 @@ fun main() = application {
|
|||||||
height = 720
|
height = 720
|
||||||
}
|
}
|
||||||
program {
|
program {
|
||||||
var img = loadImage("demo-data/images/image-001.png")
|
val img = loadImage("demo-data/images/image-001.png")
|
||||||
extend {
|
extend {
|
||||||
drawer.shadeStyle = imageFill {
|
drawer.shadeStyle = imageFill {
|
||||||
image = img
|
image = img
|
||||||
|
|||||||
@@ -2,8 +2,6 @@ package image
|
|||||||
|
|
||||||
import org.openrndr.application
|
import org.openrndr.application
|
||||||
import org.openrndr.draw.loadImage
|
import org.openrndr.draw.loadImage
|
||||||
import org.openrndr.extra.shadestyles.fills.FillUnits
|
|
||||||
import org.openrndr.extra.shadestyles.fills.SpreadMethod
|
|
||||||
import org.openrndr.extra.shadestyles.fills.image.imageFill
|
import org.openrndr.extra.shadestyles.fills.image.imageFill
|
||||||
import org.openrndr.math.transforms.transform
|
import org.openrndr.math.transforms.transform
|
||||||
import kotlin.math.cos
|
import kotlin.math.cos
|
||||||
|
|||||||
@@ -2,11 +2,8 @@ package image
|
|||||||
|
|
||||||
import org.openrndr.application
|
import org.openrndr.application
|
||||||
import org.openrndr.draw.loadImage
|
import org.openrndr.draw.loadImage
|
||||||
import org.openrndr.extra.shadestyles.fills.FillUnits
|
|
||||||
import org.openrndr.extra.shadestyles.fills.SpreadMethod
|
import org.openrndr.extra.shadestyles.fills.SpreadMethod
|
||||||
import org.openrndr.extra.shadestyles.fills.image.imageFill
|
import org.openrndr.extra.shadestyles.fills.image.imageFill
|
||||||
import org.openrndr.math.transforms.transform
|
|
||||||
import kotlin.math.cos
|
|
||||||
|
|
||||||
fun main() = application {
|
fun main() = application {
|
||||||
configure {
|
configure {
|
||||||
|
|||||||
@@ -4,13 +4,8 @@ import org.openrndr.application
|
|||||||
import org.openrndr.draw.loadImage
|
import org.openrndr.draw.loadImage
|
||||||
import org.openrndr.extra.camera.Camera2D
|
import org.openrndr.extra.camera.Camera2D
|
||||||
import org.openrndr.extra.imageFit.imageFit
|
import org.openrndr.extra.imageFit.imageFit
|
||||||
import org.openrndr.extra.noise.uniform
|
|
||||||
import org.openrndr.extra.shaderphrases.noise.simplex13
|
import org.openrndr.extra.shaderphrases.noise.simplex13
|
||||||
import org.openrndr.extra.shadestyles.fills.noise.noise
|
import org.openrndr.extra.shadestyles.fills.noise.noise
|
||||||
import org.openrndr.math.Vector3
|
|
||||||
import org.openrndr.math.transforms.transform
|
|
||||||
import kotlin.math.cos
|
|
||||||
import kotlin.reflect.KMutableProperty0
|
|
||||||
|
|
||||||
fun main() {
|
fun main() {
|
||||||
application {
|
application {
|
||||||
|
|||||||
@@ -4,13 +4,7 @@ import org.openrndr.application
|
|||||||
import org.openrndr.draw.loadImage
|
import org.openrndr.draw.loadImage
|
||||||
import org.openrndr.extra.camera.Camera2D
|
import org.openrndr.extra.camera.Camera2D
|
||||||
import org.openrndr.extra.imageFit.imageFit
|
import org.openrndr.extra.imageFit.imageFit
|
||||||
import org.openrndr.extra.noise.uniform
|
|
||||||
import org.openrndr.extra.shaderphrases.noise.simplex13
|
|
||||||
import org.openrndr.extra.shadestyles.fills.noise.noise
|
import org.openrndr.extra.shadestyles.fills.noise.noise
|
||||||
import org.openrndr.math.Vector3
|
|
||||||
import org.openrndr.math.transforms.transform
|
|
||||||
import kotlin.math.cos
|
|
||||||
import kotlin.reflect.KMutableProperty0
|
|
||||||
|
|
||||||
fun main() {
|
fun main() {
|
||||||
application {
|
application {
|
||||||
|
|||||||
@@ -2,12 +2,9 @@ package patterns
|
|||||||
|
|
||||||
import org.openrndr.application
|
import org.openrndr.application
|
||||||
import org.openrndr.color.ColorRGBa
|
import org.openrndr.color.ColorRGBa
|
||||||
import org.openrndr.draw.loadFont
|
|
||||||
import org.openrndr.draw.loadImage
|
|
||||||
import org.openrndr.extra.camera.Camera2D
|
import org.openrndr.extra.camera.Camera2D
|
||||||
import org.openrndr.extra.color.presets.NAVY
|
import org.openrndr.extra.color.presets.NAVY
|
||||||
import org.openrndr.extra.color.presets.PEACH_PUFF
|
import org.openrndr.extra.color.presets.PEACH_PUFF
|
||||||
import org.openrndr.extra.imageFit.imageFit
|
|
||||||
import org.openrndr.extra.shadestyles.fills.FillUnits
|
import org.openrndr.extra.shadestyles.fills.FillUnits
|
||||||
import org.openrndr.extra.shadestyles.fills.patterns.pattern
|
import org.openrndr.extra.shadestyles.fills.patterns.pattern
|
||||||
|
|
||||||
@@ -23,11 +20,11 @@ fun main() = application {
|
|||||||
backgroundColor = ColorRGBa.NAVY
|
backgroundColor = ColorRGBa.NAVY
|
||||||
foregroundColor = ColorRGBa.PEACH_PUFF
|
foregroundColor = ColorRGBa.PEACH_PUFF
|
||||||
patternUnits = FillUnits.WORLD
|
patternUnits = FillUnits.WORLD
|
||||||
parameter("time", seconds*0.1)
|
parameter("time", seconds * 0.1)
|
||||||
scale = 1.0
|
scale = 1.0
|
||||||
xorMod2 {
|
xorMod2 {
|
||||||
patternMod = 13
|
patternMod = 13
|
||||||
patternOffset = (seconds*1).toInt()
|
patternOffset = (seconds * 1).toInt()
|
||||||
patternMask = 1
|
patternMask = 1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,13 +2,9 @@ package patterns
|
|||||||
|
|
||||||
import org.openrndr.application
|
import org.openrndr.application
|
||||||
import org.openrndr.color.ColorRGBa
|
import org.openrndr.color.ColorRGBa
|
||||||
import org.openrndr.draw.loadFont
|
|
||||||
import org.openrndr.draw.loadImage
|
|
||||||
import org.openrndr.extra.camera.Camera2D
|
import org.openrndr.extra.camera.Camera2D
|
||||||
import org.openrndr.extra.color.presets.DARK_GRAY
|
import org.openrndr.extra.color.presets.DARK_GRAY
|
||||||
import org.openrndr.extra.color.presets.NAVY
|
|
||||||
import org.openrndr.extra.color.presets.PEACH_PUFF
|
import org.openrndr.extra.color.presets.PEACH_PUFF
|
||||||
import org.openrndr.extra.imageFit.imageFit
|
|
||||||
import org.openrndr.extra.shadestyles.fills.FillUnits
|
import org.openrndr.extra.shadestyles.fills.FillUnits
|
||||||
import org.openrndr.extra.shadestyles.fills.clip.clip
|
import org.openrndr.extra.shadestyles.fills.clip.clip
|
||||||
import org.openrndr.extra.shadestyles.fills.gradients.gradient
|
import org.openrndr.extra.shadestyles.fills.gradients.gradient
|
||||||
|
|||||||
@@ -1,6 +1,3 @@
|
|||||||
import io.kotest.assertions.shouldFail
|
|
||||||
import io.kotest.assertions.throwables.shouldThrow
|
|
||||||
import io.kotest.assertions.throwables.shouldThrowAny
|
|
||||||
import io.kotest.assertions.throwables.shouldThrowUnit
|
import io.kotest.assertions.throwables.shouldThrowUnit
|
||||||
import io.kotest.core.spec.style.DescribeSpec
|
import io.kotest.core.spec.style.DescribeSpec
|
||||||
import io.kotest.matchers.equals.shouldBeEqual
|
import io.kotest.matchers.equals.shouldBeEqual
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
package org.openrndr.extra.shapes.primitives
|
package org.openrndr.extra.shapes.primitives
|
||||||
|
|
||||||
import org.openrndr.shape.Box
|
import org.openrndr.shape.Box
|
||||||
import org.openrndr.shape.Rectangle
|
|
||||||
import kotlin.math.max
|
import kotlin.math.max
|
||||||
import kotlin.math.min
|
import kotlin.math.min
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,6 @@ import org.openrndr.extra.shapes.utilities.splitAtBase
|
|||||||
import org.openrndr.math.EuclideanVector
|
import org.openrndr.math.EuclideanVector
|
||||||
import org.openrndr.math.clamp
|
import org.openrndr.math.clamp
|
||||||
import org.openrndr.shape.Path
|
import org.openrndr.shape.Path
|
||||||
import org.openrndr.shape.ShapeContour
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Provides a rectified representation of a path in N-dimensional Euclidean space. Rectification refers
|
* Provides a rectified representation of a path in N-dimensional Euclidean space. Rectification refers
|
||||||
|
|||||||
@@ -2,7 +2,6 @@ package org.openrndr.extra.shapes.splines
|
|||||||
|
|
||||||
import org.openrndr.math.Vector2
|
import org.openrndr.math.Vector2
|
||||||
import org.openrndr.math.Vector3
|
import org.openrndr.math.Vector3
|
||||||
import org.openrndr.math.mod
|
|
||||||
import org.openrndr.shape.*
|
import org.openrndr.shape.*
|
||||||
import kotlin.math.abs
|
import kotlin.math.abs
|
||||||
import kotlin.math.pow
|
import kotlin.math.pow
|
||||||
|
|||||||
@@ -6,7 +6,6 @@ import org.openrndr.draw.loadImage
|
|||||||
import org.openrndr.draw.shadeStyle
|
import org.openrndr.draw.shadeStyle
|
||||||
import org.openrndr.extra.shapes.bezierpatches.bezierPatch
|
import org.openrndr.extra.shapes.bezierpatches.bezierPatch
|
||||||
import org.openrndr.math.Polar
|
import org.openrndr.math.Polar
|
||||||
import org.openrndr.shape.LineSegment
|
|
||||||
import org.openrndr.shape.Segment2D
|
import org.openrndr.shape.Segment2D
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -4,7 +4,6 @@ import org.openrndr.application
|
|||||||
import org.openrndr.extra.noise.shapes.uniformSub
|
import org.openrndr.extra.noise.shapes.uniformSub
|
||||||
import org.openrndr.extra.shapes.primitives.alignToVertically
|
import org.openrndr.extra.shapes.primitives.alignToVertically
|
||||||
import org.openrndr.extra.shapes.primitives.distributeHorizontally
|
import org.openrndr.extra.shapes.primitives.distributeHorizontally
|
||||||
import org.openrndr.shape.Rectangle
|
|
||||||
import kotlin.math.cos
|
import kotlin.math.cos
|
||||||
import kotlin.random.Random
|
import kotlin.random.Random
|
||||||
|
|
||||||
|
|||||||
@@ -4,10 +4,8 @@ import org.openrndr.application
|
|||||||
import org.openrndr.extra.noise.shapes.uniformSub
|
import org.openrndr.extra.noise.shapes.uniformSub
|
||||||
import org.openrndr.extra.shapes.primitives.alignToHorizontally
|
import org.openrndr.extra.shapes.primitives.alignToHorizontally
|
||||||
import org.openrndr.extra.shapes.primitives.alignToVertically
|
import org.openrndr.extra.shapes.primitives.alignToVertically
|
||||||
import org.openrndr.extra.shapes.primitives.distributeHorizontally
|
|
||||||
import org.openrndr.extra.shapes.primitives.fitHorizontally
|
import org.openrndr.extra.shapes.primitives.fitHorizontally
|
||||||
import org.openrndr.extra.shapes.primitives.fitVertically
|
import org.openrndr.extra.shapes.primitives.fitVertically
|
||||||
import org.openrndr.shape.Rectangle
|
|
||||||
import kotlin.math.cos
|
import kotlin.math.cos
|
||||||
import kotlin.random.Random
|
import kotlin.random.Random
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,6 @@ package primitives
|
|||||||
import org.openrndr.application
|
import org.openrndr.application
|
||||||
import org.openrndr.color.ColorRGBa
|
import org.openrndr.color.ColorRGBa
|
||||||
import org.openrndr.extra.color.presets.CORAL
|
import org.openrndr.extra.color.presets.CORAL
|
||||||
import org.openrndr.extra.noise.uniform
|
|
||||||
import org.openrndr.extra.noise.uniforms
|
import org.openrndr.extra.noise.uniforms
|
||||||
import org.openrndr.extra.shapes.primitives.column
|
import org.openrndr.extra.shapes.primitives.column
|
||||||
import org.openrndr.extra.shapes.primitives.irregularGrid
|
import org.openrndr.extra.shapes.primitives.irregularGrid
|
||||||
|
|||||||
@@ -6,7 +6,6 @@ import org.openrndr.draw.font.loadFace
|
|||||||
import org.openrndr.extra.camera.Camera2D
|
import org.openrndr.extra.camera.Camera2D
|
||||||
import org.openrndr.extra.shapes.bounds.bounds
|
import org.openrndr.extra.shapes.bounds.bounds
|
||||||
import org.openrndr.extra.shapes.text.shapesFromText
|
import org.openrndr.extra.shapes.text.shapesFromText
|
||||||
import org.openrndr.internal.Driver
|
|
||||||
|
|
||||||
fun main() = application {
|
fun main() = application {
|
||||||
configure {
|
configure {
|
||||||
|
|||||||
@@ -3,7 +3,6 @@ package org.openrndr.extra.timeoperators
|
|||||||
import org.openrndr.extra.parameters.Description
|
import org.openrndr.extra.parameters.Description
|
||||||
import org.openrndr.extra.parameters.OptionParameter
|
import org.openrndr.extra.parameters.OptionParameter
|
||||||
import org.openrndr.math.clamp
|
import org.openrndr.math.clamp
|
||||||
import org.openrndr.math.mod
|
|
||||||
import kotlin.math.*
|
import kotlin.math.*
|
||||||
|
|
||||||
internal const val TAU = 2.0 * PI
|
internal const val TAU = 2.0 * PI
|
||||||
|
|||||||
@@ -4,7 +4,6 @@ import org.openrndr.extra.noise.poissonDiskSampling
|
|||||||
import org.openrndr.extra.triangulation.delaunayTriangulation
|
import org.openrndr.extra.triangulation.delaunayTriangulation
|
||||||
import org.openrndr.math.Vector2
|
import org.openrndr.math.Vector2
|
||||||
import org.openrndr.shape.Circle
|
import org.openrndr.shape.Circle
|
||||||
import org.openrndr.shape.Rectangle
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This program generates a Voronoi diagram within a defined circular area and visualizes it.
|
* This program generates a Voronoi diagram within a defined circular area and visualizes it.
|
||||||
|
|||||||
Reference in New Issue
Block a user