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
Categories
MultimediaLicense
MIT LicenseFollow Go Graphics
Other Useful Business Software
Our Free Plans just got better! | Auth0
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.
Rate This Project
Login To Rate This Project
User Reviews
Be the first to post a review of Go Graphics!