From e8aa2ce1ce10b28e7068167b86b95d7704ff969c Mon Sep 17 00:00:00 2001 From: Edwin Jakobs Date: Mon, 24 Jun 2024 10:56:01 +0200 Subject: [PATCH] [orx-fx] Add bias parameter to Contour --- orx-fx/src/commonMain/kotlin/edges/Contour.kt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/orx-fx/src/commonMain/kotlin/edges/Contour.kt b/orx-fx/src/commonMain/kotlin/edges/Contour.kt index 64610d18..3c65a729 100644 --- a/orx-fx/src/commonMain/kotlin/edges/Contour.kt +++ b/orx-fx/src/commonMain/kotlin/edges/Contour.kt @@ -13,7 +13,7 @@ import org.openrndr.extra.parameters.IntParameter @Description("Contour") class Contour : Filter1to1(mppFilterShader(fx_contour, "contour")) { - @DoubleParameter("levels", 1.0, 16.0) + @DoubleParameter("levels", 0.0, 16.0) var levels: Double by parameters @DoubleParameter("contour width", 0.0, 4.0) @@ -25,6 +25,10 @@ class Contour : Filter1to1(mppFilterShader(fx_contour, "contour")) { @DoubleParameter("background opacity", 0.0, 1.0) var backgroundOpacity: Double by parameters + @DoubleParameter("bias", -1.0, 1.0) + var bias: Double by parameters + + @ColorParameter("contour color") var contourColor: ColorRGBa by parameters @@ -38,5 +42,6 @@ class Contour : Filter1to1(mppFilterShader(fx_contour, "contour")) { backgroundOpacity = 1.0 contourOpacity = 1.0 window = 1 + bias = 0.0 } }