Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for NewUniform (0.17 sec)

  1. src/image/names.go

    import (
    	"image/color"
    )
    
    var (
    	// Black is an opaque black uniform image.
    	Black = NewUniform(color.Black)
    	// White is an opaque white uniform image.
    	White = NewUniform(color.White)
    	// Transparent is a fully transparent uniform image.
    	Transparent = NewUniform(color.Transparent)
    	// Opaque is a fully opaque uniform image.
    	Opaque = NewUniform(color.Opaque)
    )
    
    // Uniform is an infinite-sized [Image] of uniform color.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:45 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  2. src/image/draw/draw_test.go

    	r1, g1, b1, a1 := c1.RGBA()
    	return r0 == r1 && g0 == g1 && b0 == b1 && a0 == a1
    }
    
    func fillBlue(alpha int) image.Image {
    	return image.NewUniform(color.RGBA{0, 0, uint8(alpha), uint8(alpha)})
    }
    
    func fillAlpha(alpha int) image.Image {
    	return image.NewUniform(color.Alpha{uint8(alpha)})
    }
    
    func vgradGreen(alpha int) image.Image {
    	m := image.NewRGBA(image.Rect(0, 0, 16, 16))
    	for y := 0; y < 16; y++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 20 18:07:05 UTC 2023
    - 26K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"NewGray16", Func, 0},
    		{"NewNRGBA", Func, 0},
    		{"NewNRGBA64", Func, 0},
    		{"NewNYCbCrA", Func, 6},
    		{"NewPaletted", Func, 0},
    		{"NewRGBA", Func, 0},
    		{"NewRGBA64", Func, 0},
    		{"NewUniform", Func, 0},
    		{"NewYCbCr", Func, 0},
    		{"Opaque", Var, 0},
    		{"Paletted", Type, 0},
    		{"Paletted.Palette", Field, 0},
    		{"Paletted.Pix", Field, 0},
    		{"Paletted.Rect", Field, 0},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
Back to top