xyz.cssxsh.pixiv.tool.StuckiDitherer.kt Maven / Gradle / Ivy
package xyz.cssxsh.pixiv.tool
public class StuckiDitherer private constructor() : UniversalDitherer(DISTRIBUTION) {
public companion object {
@JvmStatic
public val DISTRIBUTION: List = listOf(
ErrorComponent(1, 0, 8 / 48.0),
ErrorComponent(2, 0, 4 / 48.0),
ErrorComponent(-2, 1, 2 / 48.0),
ErrorComponent(-1, 1, 4 / 48.0),
ErrorComponent(0, 1, 8 / 48.0),
ErrorComponent(1, 1, 4 / 48.0),
ErrorComponent(2, 1, 2 / 48.0),
ErrorComponent(-2, 2, 1 / 48.0),
ErrorComponent(-1, 2, 2 / 48.0),
ErrorComponent(0, 2, 4 / 48.0),
ErrorComponent(1, 2, 2 / 48.0),
ErrorComponent(2, 2, 1 / 48.0),
)
@JvmStatic
public val INSTANCE: StuckiDitherer = StuckiDitherer()
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy