[orx-fx] Add Invert fx filter (#214)

This commit is contained in:
Abe Pazos
2021-12-18 21:15:50 +01:00
committed by GitHub
parent 26f4aa56d9
commit ef1da87c29
2 changed files with 32 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
package org.openrndr.extra.fx.color
import org.openrndr.draw.Filter
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
@Description("Invert")
class Invert : Filter(mppFilterShader(fx_invert, "invert")) {
@DoubleParameter("amount", 0.0, 1.0)
var amount: Double by parameters
init {
amount = 1.0
}
}