Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for ExampleDrawer_floydSteinberg (0.49 sec)

  1. src/image/draw/example_test.go

    // license that can be found in the LICENSE file.
    
    package draw_test
    
    import (
    	"fmt"
    	"image"
    	"image/color"
    	"image/draw"
    	"math"
    )
    
    func ExampleDrawer_floydSteinberg() {
    	const width = 130
    	const height = 50
    
    	im := image.NewGray(image.Rectangle{Max: image.Point{X: width, Y: height}})
    	for x := 0; x < width; x++ {
    		for y := 0; y < height; y++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 20 18:07:05 UTC 2023
    - 1.1K bytes
    - Viewed (0)
Back to top