Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for SetCMYK (0.18 sec)

  1. src/image/draw/bench_test.go

    	case nil:
    		src = &image.Uniform{C: color.RGBA{0x11, 0x22, 0x33, 0x44}}
    	case color.CMYKModel:
    		src1 := image.NewCMYK(image.Rect(0, 0, srcw, srch))
    		for y := 0; y < srch; y++ {
    			for x := 0; x < srcw; x++ {
    				src1.SetCMYK(x, y, color.CMYK{
    					uint8(13 * x % 0x100),
    					uint8(11 * y % 0x100),
    					uint8((11*x + 13*y) % 0x100),
    					uint8((31*x + 37*y) % 0x100),
    				})
    			}
    		}
    		src = src1
    	case color.GrayModel:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 20 18:07:05 UTC 2023
    - 6.6K bytes
    - Viewed (0)
Back to top