gg is a library for rendering 2D graphics in pure Go. There are lots of examples included. They're mostly for testing the code, but they're good for learning, too. It is often desired to center an image at a point. Use DrawImageAnchored with ax and ay set to 0.5 to do this. Use 0 to left or top align. Use 1 to right or bottom align. DrawStringAnchored does the same for text, so you don't need to call MeasureString yourself. gg supports linear, radial and conic gradients and surface patterns. You can also implement your own patterns. It is often desired to rotate or scale about a point that is not the origin. The functions RotateAbout, ScaleAbout, ShearAbout are provided as a convenience.

Features

  • There are a few ways of creating a context
  • Draw Functions
  • Color Functions
  • Text Functions
  • Stroke & Fill Options
  • Gradients & Patterns

Project Samples

Project Activity

See All Activity >

Categories

Multimedia

License

MIT License

Follow Go Graphics

Go Graphics Web Site

Other Useful Business Software
Our Free Plans just got better! | Auth0 Icon
Our Free Plans just got better! | Auth0

With up to 25k MAUs and unlimited Okta connections, our Free Plan lets you focus on what you do best—building great apps.

You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your security. Auth0 now, thank yourself later.
Try free now
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Go Graphics!

Additional Project Details

Operating Systems

Linux, Mac, Windows

Programming Language

Go

Related Categories

Go Multimedia Software

Registered

2023-01-12