Remove unused imports (#344)
This commit is contained in:
@@ -4,8 +4,6 @@ import org.openrndr.draw.ColorFormat
|
||||
import org.openrndr.draw.ColorType
|
||||
import org.openrndr.draw.Shader
|
||||
import org.openrndr.draw.filterShaderFromCode
|
||||
import org.openrndr.internal.Driver
|
||||
import org.openrndr.resourceUrl
|
||||
|
||||
fun mppFilterShader(code: String, name: String) : Shader = filterShaderFromCode(code, name, includeShaderConfiguration = true)
|
||||
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
|
||||
package org.openrndr.extra.fx.antialias
|
||||
|
||||
import org.openrndr.draw.Filter
|
||||
import org.openrndr.draw.Filter1to1
|
||||
import org.openrndr.extra.fx.fx_fxaa
|
||||
import org.openrndr.extra.fx.mppFilterShader
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
|
||||
package org.openrndr.extra.fx.blend
|
||||
|
||||
import org.openrndr.draw.Filter
|
||||
import org.openrndr.draw.Filter1to1
|
||||
import org.openrndr.draw.Filter2to1
|
||||
import org.openrndr.extra.fx.*
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
|
||||
package org.openrndr.extra.fx.blur
|
||||
|
||||
import org.openrndr.draw.Filter
|
||||
import org.openrndr.draw.Filter1to1
|
||||
import org.openrndr.draw.Filter2to1
|
||||
import org.openrndr.draw.Filter3to1
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
package org.openrndr.extra.fx.color
|
||||
|
||||
import org.openrndr.color.ColorRGBa
|
||||
import org.openrndr.draw.Filter
|
||||
import org.openrndr.draw.Filter1to1
|
||||
import org.openrndr.extra.fx.fx_color_mix
|
||||
import org.openrndr.extra.fx.fx_color_tint
|
||||
|
||||
@@ -1,13 +1,9 @@
|
||||
package org.openrndr.extra.fx.color
|
||||
|
||||
import org.openrndr.draw.Filter
|
||||
import org.openrndr.draw.Filter1to1
|
||||
import org.openrndr.extra.fx.*
|
||||
import org.openrndr.extra.fx.fx_rgb_to_oklab
|
||||
import org.openrndr.extra.fx.fx_rgb_to_ycbcr
|
||||
import org.openrndr.extra.fx.fx_ycbcr_to_rgb
|
||||
import org.openrndr.extra.shaderphrases.preprocess
|
||||
import org.openrndr.extra.color.phrases.ColorPhraseBook
|
||||
import org.openrndr.extra.fx.*
|
||||
import org.openrndr.extra.shaderphrases.preprocess
|
||||
|
||||
class RgbToYCbcr : Filter1to1(mppFilterShader(fx_rgb_to_ycbcr, "rgb-to-ycbcr"))
|
||||
class YcbcrToRgb : Filter1to1(mppFilterShader(fx_ycbcr_to_rgb, "ycbcr_to_rgb"))
|
||||
|
||||
@@ -3,19 +3,16 @@
|
||||
package org.openrndr.extra.fx.color
|
||||
|
||||
import org.openrndr.color.ColorRGBa
|
||||
import org.openrndr.draw.Filter
|
||||
import org.openrndr.draw.Filter1to1
|
||||
import org.openrndr.draw.filterShaderFromCode
|
||||
import org.openrndr.extra.color.phrases.ColorPhraseBook
|
||||
import org.openrndr.extra.color.presets.CORAL
|
||||
import org.openrndr.extra.color.presets.NAVY
|
||||
import org.openrndr.extra.fx.fx_duotone
|
||||
import org.openrndr.extra.parameters.BooleanParameter
|
||||
|
||||
import org.openrndr.extra.parameters.ColorParameter
|
||||
import org.openrndr.extra.parameters.Description
|
||||
import org.openrndr.extra.shaderphrases.preprocess
|
||||
import org.openrndr.extra.color.phrases.ColorPhraseBook
|
||||
import org.openrndr.extra.color.presets.CORAL
|
||||
import org.openrndr.extra.color.presets.DARK_GRAY
|
||||
import org.openrndr.extra.color.presets.NAVY
|
||||
|
||||
@Description("Duotone")
|
||||
class Duotone : Filter1to1(filterShaderFromCode(run {
|
||||
|
||||
@@ -3,19 +3,17 @@
|
||||
package org.openrndr.extra.fx.color
|
||||
|
||||
import org.openrndr.color.ColorRGBa
|
||||
import org.openrndr.draw.Filter
|
||||
import org.openrndr.draw.Filter1to1
|
||||
import org.openrndr.draw.filterShaderFromCode
|
||||
import org.openrndr.extra.color.phrases.ColorPhraseBook
|
||||
import org.openrndr.extra.color.presets.CORAL
|
||||
import org.openrndr.extra.color.presets.NAVY
|
||||
import org.openrndr.extra.fx.fx_duotone_gradient
|
||||
import org.openrndr.extra.parameters.BooleanParameter
|
||||
|
||||
import org.openrndr.extra.parameters.ColorParameter
|
||||
import org.openrndr.extra.parameters.Description
|
||||
import org.openrndr.extra.parameters.DoubleParameter
|
||||
import org.openrndr.extra.shaderphrases.preprocess
|
||||
import org.openrndr.extra.color.phrases.ColorPhraseBook
|
||||
import org.openrndr.extra.color.presets.CORAL
|
||||
import org.openrndr.extra.color.presets.NAVY
|
||||
|
||||
@Description("Duotone Gradient")
|
||||
class DuotoneGradient : Filter1to1(filterShaderFromCode(run {
|
||||
|
||||
@@ -2,10 +2,8 @@
|
||||
|
||||
package org.openrndr.extra.fx.color
|
||||
|
||||
import org.openrndr.draw.Filter
|
||||
import org.openrndr.draw.Filter1to1
|
||||
import org.openrndr.extra.fx.fx_invert
|
||||
import org.openrndr.extra.fx.fx_sepia
|
||||
import org.openrndr.extra.fx.mppFilterShader
|
||||
import org.openrndr.extra.parameters.Description
|
||||
import org.openrndr.extra.parameters.DoubleParameter
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
package org.openrndr.extra.fx.color
|
||||
|
||||
import org.openrndr.color.ColorRGBa
|
||||
import org.openrndr.draw.Filter
|
||||
import org.openrndr.draw.Filter1to1
|
||||
import org.openrndr.extra.fx.fx_luma_map
|
||||
import org.openrndr.extra.fx.mppFilterShader
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
|
||||
package org.openrndr.extra.fx.color
|
||||
|
||||
import org.openrndr.draw.Filter
|
||||
import org.openrndr.draw.Filter1to1
|
||||
import org.openrndr.extra.fx.fx_luma_opacity
|
||||
import org.openrndr.extra.fx.mppFilterShader
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
package org.openrndr.extra.fx.color
|
||||
|
||||
import org.openrndr.color.ColorRGBa
|
||||
import org.openrndr.draw.Filter
|
||||
import org.openrndr.draw.Filter1to1
|
||||
import org.openrndr.extra.fx.fx_luma_threshold
|
||||
import org.openrndr.extra.fx.mppFilterShader
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
|
||||
package org.openrndr.extra.fx.color
|
||||
|
||||
import org.openrndr.draw.Filter
|
||||
import org.openrndr.draw.Filter1to1
|
||||
import org.openrndr.extra.fx.fx_pal
|
||||
import org.openrndr.extra.fx.mppFilterShader
|
||||
|
||||
@@ -2,22 +2,11 @@
|
||||
|
||||
package org.openrndr.extra.fx.color
|
||||
|
||||
import org.openrndr.color.ColorRGBa
|
||||
import org.openrndr.draw.Filter
|
||||
import org.openrndr.draw.Filter1to1
|
||||
import org.openrndr.draw.filterShaderFromCode
|
||||
import org.openrndr.extra.fx.fx_duotone
|
||||
import org.openrndr.extra.fx.fx_posterize
|
||||
import org.openrndr.extra.parameters.BooleanParameter
|
||||
|
||||
import org.openrndr.extra.parameters.ColorParameter
|
||||
import org.openrndr.extra.parameters.Description
|
||||
import org.openrndr.extra.parameters.IntParameter
|
||||
import org.openrndr.extra.shaderphrases.preprocess
|
||||
import org.openrndr.extra.color.phrases.ColorPhraseBook
|
||||
import org.openrndr.extra.color.presets.CORAL
|
||||
import org.openrndr.extra.color.presets.DARK_GRAY
|
||||
import org.openrndr.extra.color.presets.NAVY
|
||||
|
||||
@Description("Posterize")
|
||||
class Posterize : Filter1to1(filterShaderFromCode(fx_posterize, "posterize")) {
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
|
||||
package org.openrndr.extra.fx.color
|
||||
|
||||
import org.openrndr.draw.Filter
|
||||
import org.openrndr.draw.Filter1to1
|
||||
import org.openrndr.extra.fx.fx_sepia
|
||||
import org.openrndr.extra.fx.mppFilterShader
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
package org.openrndr.extra.fx.color
|
||||
|
||||
import org.openrndr.color.ColorRGBa
|
||||
import org.openrndr.draw.Filter
|
||||
import org.openrndr.draw.Filter1to1
|
||||
import org.openrndr.extra.fx.fx_set_background
|
||||
import org.openrndr.extra.fx.mppFilterShader
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
package org.openrndr.extra.fx.color
|
||||
|
||||
import org.openrndr.color.ColorRGBa
|
||||
import org.openrndr.draw.Filter
|
||||
import org.openrndr.draw.Filter1to1
|
||||
import org.openrndr.extra.fx.fx_subtract_constant
|
||||
import org.openrndr.extra.fx.mppFilterShader
|
||||
|
||||
@@ -2,13 +2,14 @@
|
||||
|
||||
package org.openrndr.extra.fx.distort
|
||||
|
||||
import org.openrndr.draw.*
|
||||
import org.openrndr.draw.ColorBuffer
|
||||
import org.openrndr.draw.Filter1to1
|
||||
import org.openrndr.draw.MagnifyingFilter
|
||||
import org.openrndr.draw.MinifyingFilter
|
||||
import org.openrndr.extra.fx.fx_polar_to_rectangular
|
||||
import org.openrndr.extra.fx.mppFilterShader
|
||||
import org.openrndr.extra.parameters.BooleanParameter
|
||||
import org.openrndr.extra.parameters.Description
|
||||
import org.openrndr.extra.parameters.Vector2Parameter
|
||||
import org.openrndr.math.Vector2
|
||||
import org.openrndr.shape.Rectangle
|
||||
|
||||
@Description("Polar to rectangular")
|
||||
|
||||
@@ -2,15 +2,15 @@
|
||||
|
||||
package org.openrndr.extra.fx.distort
|
||||
|
||||
import org.openrndr.draw.*
|
||||
import org.openrndr.draw.ColorBuffer
|
||||
import org.openrndr.draw.Filter1to1
|
||||
import org.openrndr.draw.MagnifyingFilter
|
||||
import org.openrndr.draw.MinifyingFilter
|
||||
import org.openrndr.extra.fx.fx_rectangular_to_polar
|
||||
import org.openrndr.extra.fx.mppFilterShader
|
||||
import org.openrndr.extra.parameters.BooleanParameter
|
||||
import org.openrndr.extra.parameters.Description
|
||||
import org.openrndr.extra.parameters.Vector2Parameter
|
||||
import org.openrndr.math.Vector2
|
||||
import org.openrndr.shape.Rectangle
|
||||
import kotlin.math.log
|
||||
|
||||
@Description("Rectangular to polar")
|
||||
class RectangularToPolar : Filter1to1(mppFilterShader(fx_rectangular_to_polar, "rectangular-to-polar")) {
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
package org.openrndr.extra.fx.distort
|
||||
|
||||
import org.openrndr.color.ColorRGBa
|
||||
import org.openrndr.draw.Filter
|
||||
import org.openrndr.draw.Filter1to1
|
||||
import org.openrndr.extra.fx.fx_tape_noise
|
||||
import org.openrndr.extra.fx.mppFilterShader
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
|
||||
package org.openrndr.extra.fx.distort
|
||||
|
||||
import org.openrndr.draw.Filter
|
||||
import org.openrndr.draw.Filter1to1
|
||||
import org.openrndr.extra.fx.fx_video_glitch
|
||||
import org.openrndr.extra.fx.mppFilterShader
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
|
||||
package org.openrndr.extra.fx.dither
|
||||
|
||||
import org.openrndr.draw.Filter
|
||||
import org.openrndr.draw.Filter1to1
|
||||
import org.openrndr.extra.fx.fx_a_dither
|
||||
import org.openrndr.extra.fx.mppFilterShader
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
|
||||
package org.openrndr.extra.fx.dither
|
||||
|
||||
import org.openrndr.draw.Filter
|
||||
import org.openrndr.draw.Filter1to1
|
||||
import org.openrndr.extra.fx.fx_cmyk_halftone
|
||||
import org.openrndr.extra.fx.mppFilterShader
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
|
||||
package org.openrndr.extra.fx.dither
|
||||
|
||||
import org.openrndr.draw.Filter
|
||||
import org.openrndr.draw.Filter1to1
|
||||
import org.openrndr.extra.fx.fx_crosshatch
|
||||
import org.openrndr.extra.fx.mppFilterShader
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
|
||||
package org.openrndr.extra.fx.dither
|
||||
|
||||
import org.openrndr.draw.Filter
|
||||
import org.openrndr.draw.Filter1to1
|
||||
import org.openrndr.draw.filterShaderFromCode
|
||||
import org.openrndr.extra.fx.fx_luma_halftone
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
package org.openrndr.extra.fx.edges
|
||||
|
||||
import org.openrndr.color.ColorRGBa
|
||||
import org.openrndr.draw.Filter
|
||||
import org.openrndr.draw.Filter1to1
|
||||
import org.openrndr.draw.filterShaderFromCode
|
||||
import org.openrndr.extra.fx.fx_canny_edge_detector
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
package org.openrndr.extra.fx.edges
|
||||
|
||||
import org.openrndr.color.ColorRGBa
|
||||
import org.openrndr.draw.Filter
|
||||
import org.openrndr.draw.Filter1to1
|
||||
import org.openrndr.extra.fx.fx_contour
|
||||
import org.openrndr.extra.fx.mppFilterShader
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
package org.openrndr.extra.fx.edges
|
||||
|
||||
import org.openrndr.color.ColorRGBa
|
||||
import org.openrndr.draw.Filter
|
||||
import org.openrndr.draw.Filter1to1
|
||||
import org.openrndr.extra.fx.fx_luma_sobel
|
||||
import org.openrndr.extra.fx.mppFilterShader
|
||||
|
||||
@@ -2,13 +2,13 @@
|
||||
|
||||
package org.openrndr.extra.fx.grain
|
||||
|
||||
import org.openrndr.draw.Filter
|
||||
import org.openrndr.draw.Filter1to1
|
||||
import org.openrndr.extra.fx.fx_film_grain
|
||||
import org.openrndr.extra.fx.mppFilterShader
|
||||
import org.openrndr.extra.parameters.BooleanParameter
|
||||
import org.openrndr.extra.parameters.Description
|
||||
import org.openrndr.extra.parameters.DoubleParameter
|
||||
|
||||
/**
|
||||
* Film grain filter
|
||||
*/
|
||||
|
||||
@@ -1,14 +1,11 @@
|
||||
@file:Suppress("RUNTIME_ANNOTATION_NOT_SUPPORTED")
|
||||
|
||||
import org.openrndr.draw.Filter
|
||||
import org.openrndr.draw.Filter1to1
|
||||
import org.openrndr.draw.filterShaderFromCode
|
||||
import org.openrndr.extra.fx.fx_film_grain
|
||||
import org.openrndr.extra.fx.fx_multiply_u
|
||||
import org.openrndr.extra.fx.mppFilterShader
|
||||
import org.openrndr.extra.parameters.BooleanParameter
|
||||
import org.openrndr.extra.parameters.Description
|
||||
import org.openrndr.extra.parameters.DoubleParameter
|
||||
|
||||
/**
|
||||
* Multiply by u coordinate
|
||||
*/
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
@file:Suppress("RUNTIME_ANNOTATION_NOT_SUPPORTED")
|
||||
|
||||
import org.openrndr.draw.Filter
|
||||
import org.openrndr.draw.Filter1to1
|
||||
import org.openrndr.draw.filterShaderFromCode
|
||||
import org.openrndr.extra.fx.fx_multiply_v
|
||||
import org.openrndr.extra.parameters.BooleanParameter
|
||||
import org.openrndr.extra.parameters.Description
|
||||
import org.openrndr.extra.parameters.DoubleParameter
|
||||
|
||||
/**
|
||||
* Multiply by v coordinate
|
||||
*/
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
@file:Suppress("RUNTIME_ANNOTATION_NOT_SUPPORTED")
|
||||
|
||||
import org.openrndr.draw.Filter
|
||||
import org.openrndr.draw.Filter1to1
|
||||
import org.openrndr.draw.filterShaderFromCode
|
||||
import org.openrndr.extra.fx.fx_square
|
||||
import org.openrndr.extra.parameters.Description
|
||||
|
||||
/**
|
||||
* Square input texture values
|
||||
*/
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
package org.openrndr.extra.fx.patterns
|
||||
|
||||
import org.openrndr.color.ColorRGBa
|
||||
import org.openrndr.draw.Filter
|
||||
import org.openrndr.draw.Filter1to1
|
||||
import org.openrndr.extra.fx.fx_checkers
|
||||
import org.openrndr.extra.fx.mppFilterShader
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
|
||||
package org.openrndr.extra.fx.tonemap
|
||||
|
||||
import org.openrndr.draw.Filter
|
||||
import org.openrndr.draw.Filter1to1
|
||||
import org.openrndr.extra.fx.fx_uncharted2_tonemap
|
||||
import org.openrndr.extra.fx.mppFilterShader
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
package org.openrndr.extra.fx.transform
|
||||
|
||||
import org.openrndr.draw.Filter
|
||||
import org.openrndr.draw.Filter1to1
|
||||
import org.openrndr.extra.fx.fx_flip_vertically
|
||||
import org.openrndr.extra.fx.mppFilterShader
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
import org.openrndr.extra.fx.color.Duotone
|
||||
import org.openrndr.application
|
||||
import org.openrndr.draw.createEquivalent
|
||||
import org.openrndr.draw.loadImage
|
||||
import org.openrndr.math.mod_
|
||||
import org.openrndr.extra.fx.color.Duotone
|
||||
|
||||
fun main() {
|
||||
application {
|
||||
@@ -13,14 +12,10 @@ fun main() {
|
||||
val duotone = Duotone()
|
||||
|
||||
extend {
|
||||
|
||||
duotone.labInterpolation = seconds.mod(2.0) < 1.0
|
||||
duotone.apply(image, filteredImage)
|
||||
drawer.image(filteredImage)
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -1,9 +1,7 @@
|
||||
import org.openrndr.extra.fx.color.Duotone
|
||||
import org.openrndr.application
|
||||
import org.openrndr.draw.createEquivalent
|
||||
import org.openrndr.draw.loadImage
|
||||
import org.openrndr.extra.fx.color.Posterize
|
||||
import org.openrndr.math.mod_
|
||||
|
||||
fun main() {
|
||||
application {
|
||||
@@ -16,10 +14,7 @@ fun main() {
|
||||
posterize.levels = 2
|
||||
posterize.apply(image, filteredImage)
|
||||
drawer.image(filteredImage)
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -1,7 +1,6 @@
|
||||
import org.openrndr.application
|
||||
import org.openrndr.draw.colorBuffer
|
||||
import org.openrndr.draw.createEquivalent
|
||||
import org.openrndr.extensions.SingleScreenshot
|
||||
import org.openrndr.extra.fx.distort.FluidDistort
|
||||
import org.openrndr.extra.fx.patterns.Checkers
|
||||
|
||||
|
||||
@@ -1,9 +1,7 @@
|
||||
import org.openrndr.WindowMultisample
|
||||
import org.openrndr.application
|
||||
import org.openrndr.extra.fx.Post
|
||||
import org.openrndr.extra.fx.blend.Add
|
||||
import org.openrndr.extra.fx.blur.ApproximateGaussianBlur
|
||||
import org.openrndr.shape.Circle
|
||||
import kotlin.math.cos
|
||||
|
||||
fun main() = application {
|
||||
|
||||
Reference in New Issue
Block a user