[orx-fx] Add fade to Contour and CannyEdgeDetector

This commit is contained in:
Edwin Jakobs
2024-06-25 10:53:39 +02:00
parent a08090318a
commit 81cefe6b3d
6 changed files with 133 additions and 44 deletions

View File

@@ -37,6 +37,9 @@ class CannyEdgeDetector : Filter1to1(
var backgroundOpacity: Double by parameters
@DoubleParameter("fade", 0.0, 1.0, order = 7)
var fade: Double by parameters
init {
threshold0 = 2.0
threshold1 = 0.0
@@ -45,6 +48,7 @@ class CannyEdgeDetector : Filter1to1(
backgroundColor = ColorRGBa.BLACK
backgroundOpacity = 1.0
foregroundOpacity = 1.0
fade = 1.0
}
}