[orx-fx] convert to MPP
This commit is contained in:
21
orx-fx/src/commonMain/kotlin/dither/ADither.kt
Normal file
21
orx-fx/src/commonMain/kotlin/dither/ADither.kt
Normal file
@@ -0,0 +1,21 @@
|
||||
package org.openrndr.extra.fx.dither
|
||||
|
||||
import org.openrndr.draw.Filter
|
||||
import org.openrndr.extra.fx.fx_a_dither
|
||||
import org.openrndr.extra.fx.mppFilterShader
|
||||
import org.openrndr.extra.parameters.Description
|
||||
import org.openrndr.extra.parameters.IntParameter
|
||||
|
||||
@Description("ADither")
|
||||
class ADither: Filter(mppFilterShader(fx_a_dither, "a-dither")) {
|
||||
@IntParameter("pattern index", 0, 3)
|
||||
var pattern: Int by parameters
|
||||
|
||||
@IntParameter("levels", 1, 64)
|
||||
var levels: Int by parameters
|
||||
|
||||
init {
|
||||
levels = 4
|
||||
pattern = 3
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user