You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

77 lines
916 B

package pixel
import "time"
var bayes = [16][4]byte{
{
0b11111111,
0b11111111,
0b11111111,
0b11111111,
},
{
0b11101110,
0b11111111,
0b11111111,
0b11111111,
},
{
0b11101110,
0b11111111,
0b10111011,
0b11111111,
},
{
0b11101110,
0b11111111,
0b10101010,
0b11111111,
},
{
0b10101010,
0b11111111,
0b10101010,
0b11111111,
},
{
0b10101010,
0b11011101,
0b10101010,
0b11111111,
},
{
0b10101010,
0b11011101,
0b10101010,
0b11011101,
},
{
0b10101010,
0b11011101,
0b10101010,
0b01010101,
},
{
0b10101010,
0b01010101,
0b10101010,
0b01010101,
},
{
0b10101010,
0b00010001,
0b10101010,
0b01010101,
},
{
0b10101010,
0b00010001,
0b10101010,
0b00010001,
},
}
// FadeOutDither applies gradual 4×4 Bayes dithering to all pixels off.
func FadeOutDither(buffer *Bitmap, duration time.Duration) <-chan time.Time {
return nil
}