rsc.io/qr/coding.Pixel.Role (method)

8 uses

	rsc.io/qr/coding (current package)
		qr.go#L239: func (p Pixel) Role() PixelRole {
		qr.go#L244: 	s := p.Role().String()
		qr.go#L452: 			switch pix.Role() {
		qr.go#L729: 			if p.Pixel[y][x-1].Role() == 0 {
		qr.go#L732: 			if p.Pixel[y][x-2].Role() == 0 {
		qr.go#L741: 			if p.Pixel[y][x-1].Role() == 0 {
		qr.go#L744: 			if p.Pixel[y][x-2].Role() == 0 {
		qr.go#L758: 			if r := pix.Role(); (r == Data || r == Check || r == Extra) && p.Mask.Invert(y, x) {