gg icon indicating copy to clipboard operation
gg copied to clipboard

Go Graphics - 2D rendering in Go with a simple API.

Results 98 gg issues
Sort by recently updated
recently updated
newest added

please add distance

1.Radial gradient cannot be transformed 2.examples/gradient-linear.go grad.AddColorStop(0, color.RGBA{0, 255, 0, 255}) to grad.AddColorStop(0, color.RGBA{0, 255, 0, 0}) color.RGBA.A !=255 has a problem

It's says: > The anchor point is x - w * ax, y - h * ay, where w, h is the size of the // text. Use ax=0.5, ay=0.5...

Hi! Is there a way to draw on each of an image's RGB channels independently? I need this for a game I'm developing. Alternatively, is there a way to add...

When applying a clipping mask after saving the current context state, calling `context.Pop()` does not revert to the previous clipping mask. (It appears that this does not revert anything, but...

The banding is really high. Is there any way to reduce this for the generated images?

context.LoadFontFace and context.SetFontFace can set different fontHeights: ``` package main import ( "fmt" "github.com/fogleman/gg" ) func main() { text := "1234" font := "/usr/share/fonts/truetype/liberation/LiberationSans-Bold.ttf" face, err := gg.LoadFontFace(font, 12) if...

When closing the file, errors can still occur that might not be surfaced during the writes from `png.Encode` and `jpeg.Encode`. By returning the error from `file.Close()`, these cases can be...