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
Auth0 for AI Agents now in GA
Connect your AI agents to apps and data more securely, give users control over the actions AI agents can perform and the data they can access, and enable human confirmation for critical agent actions.
Rate This Project
Login To Rate This Project
User Reviews
Be the first to post a review of Go Graphics!