This commit is contained in:
llgcode 2017-12-04 09:46:40 +01:00
parent 3e4c36c4c9
commit 8167230c09
4 changed files with 15 additions and 15 deletions

View file

@ -4,8 +4,8 @@
package draw2dbase package draw2dbase
import ( import (
"math"
"errors" "errors"
"math"
) )
const ( const (

View file

@ -1,14 +1,14 @@
package draw2dimg package draw2dimg
import ( import (
"image"
"image/color"
"fmt" "fmt"
"testing" "github.com/golang/freetype/truetype"
"github.com/llgcode/draw2d" "github.com/llgcode/draw2d"
"github.com/llgcode/draw2d/draw2dkit" "github.com/llgcode/draw2d/draw2dkit"
"github.com/golang/freetype/truetype"
"golang.org/x/image/font/gofont/goregular" "golang.org/x/image/font/gofont/goregular"
"image"
"image/color"
"testing"
) )
// font generated from icomoon.io and converted to go byte slice // font generated from icomoon.io and converted to go byte slice

View file

@ -13,7 +13,7 @@ import (
func TestSync(t *testing.T) { func TestSync(t *testing.T) {
ch := make(chan int) ch := make(chan int)
limit := 2000 limit := 2
for i := 0; i < limit; i++ { for i := 0; i < limit; i++ {
go Draw(i, ch) go Draw(i, ch)
} }