Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for trIdx (0.02 sec)

  1. src/image/gif/writer_test.go

    func TestColorTablesMatch(t *testing.T) {
    	const trIdx = 100
    	global := color.Palette(palette.Plan9)
    	if rgb := global[trIdx].(color.RGBA); rgb.R == 0 && rgb.G == 0 && rgb.B == 0 {
    		t.Fatalf("trIdx (%d) is already black", trIdx)
    	}
    
    	// Make a copy of the palette, substituting trIdx's slot with transparent,
    	// just like decoder.decode.
    	local := append(color.Palette(nil), global...)
    	local[trIdx] = color.RGBA{}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 03 14:56:25 UTC 2024
    - 19K bytes
    - Viewed (0)
Back to top