All Downloads are FREE. Search and download functionalities are using the official Maven repository.

xyz.cssxsh.pixiv.tool.JJNDitherer.kt Maven / Gradle / Ivy

package xyz.cssxsh.pixiv.tool

public class JJNDitherer private constructor() : UniversalDitherer(DISTRIBUTION) {
    public companion object {
        @JvmStatic
        public val DISTRIBUTION: List = listOf(
            ErrorComponent(1, 0, 7 / 48.0),
            ErrorComponent(2, 0, 5 / 48.0),

            ErrorComponent(-2, 1, 3 / 48.0),
            ErrorComponent(-1, 1, 5 / 48.0),
            ErrorComponent(0, 1, 7 / 48.0),
            ErrorComponent(1, 1, 5 / 48.0),
            ErrorComponent(2, 1, 3 / 48.0),

            ErrorComponent(-2, 2, 1 / 48.0),
            ErrorComponent(-1, 2, 3 / 48.0),
            ErrorComponent(0, 2, 5 / 48.0),
            ErrorComponent(1, 2, 3 / 48.0),
            ErrorComponent(2, 2, 1 / 48.0),
        )

        @JvmStatic
        public val INSTANCE: JJNDitherer = JJNDitherer()
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy