awesome-repositories.com
博客
awesome-repositories.com

通过 AI 驱动的搜索,发现最优秀的开源仓库。

探索精选搜索开源替代品自托管软件博客网站地图
项目关于排名机制媒体报道MCP 服务器
法律隐私政策服务条款
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
fogleman avatar

fogleman/gg

0
View on GitHub↗
4,778 星标·383 分支·Go·MIT·7 次浏览godoc.org/github.com/fogleman/gg↗

Gg

gg 是一个 Go 语言 2D 图形库和矢量图形引擎,专为程序化图像生成而设计。它提供了一个画布渲染 API 来创建自定义 2D 形状、路径和视觉资产,并可导出为 PNG 和 JPG 文件。

该工具包支持使用贝塞尔曲线和自定义路径构建复杂的几何图形。它支持多种渲染操作,包括填充和描边路径、应用线性和径向渐变,以及使用表面图案。

该库涵盖了广泛的功能,包括带有自动换行和尺寸测量的文本渲染、旋转和缩放等坐标变换,以及使用 Alpha 遮罩剪裁来限制绘图区域。它还通过基于栈的系统管理图形状态,以支持嵌套变换和样式。

Features

  • 2D Vector Graphics Libraries - Provides a comprehensive API for drawing shapes, paths, and text in a two-dimensional vector space using Go.
  • Canvas Rendering - Provides a raster-based canvas rendering engine for programmatic image generation in Go.
  • Canvas and Paint APIs - Offers programmatic interfaces for defining drawing styles and executing rendering commands on a surface.
  • Canvas Coordinate Transformations - Implements canvas coordinate modifications including translation, scaling, rotation, and skewing.
  • Programmatic Image Toolkits - Provides a set of tools for creating PNG and JPG files through 2D drawing and font rendering.
  • Go Graphics Libraries - Provides a specialized toolkit for rendering 2D shapes and text using a coordinate-based canvas in Go.
  • Shape Drawing - Renders geometric primitives including circles, rectangles, ellipses, polygons, and arcs.
  • Path Geometry Construction - Enables the construction of complex geometry using cubic and quadratic Bezier curves and custom paths.
  • Composite Path Construction - Constructs complex vector paths by combining linear segments and Bezier curves.
  • Fill and Stroke Styles - Applies colors, gradients, and patterns to define the interior and boundaries of vector shapes.
  • Transformation Stacks - Implements a transformation stack to save and restore nested matrix transformations.
  • Vector Rasterizers - Converts mathematical vector definitions, including Bezier curves and paths, into pixel-based raster images.
  • Text Rendering - Renders text strings onto a canvas with support for fonts, alignment, and word wrapping.
  • Raster Image Renderers - Implements a rendering engine to produce high-quality PNG and JPG files with custom layouts and gradients.
  • Graphics State Management - Manages graphics state by saving and restoring stacks of style and transformation settings.
  • Raster Image Exporters - Exports final visual output to disk or writers in PNG and JPG formats.
  • Canvas Image Positioning - Provides logic for aligning and positioning external images on the rendering canvas.
  • Dynamic Image Renderers - Enables programmatic generation of images like banners and charts based on runtime functions.
  • Gradient Renderers - Renders smooth linear and radial color transitions across graphical elements.
  • Image Blitting - Allows placing external image data onto the drawing canvas by mapping source pixels to target coordinates.
  • Clipping Regions - Defines path-based clipping regions to restrict the visible rendering area of the canvas.
  • Text Dimension Measurement - Calculates the exact pixel width and height of text segments for custom layout rendering.
  • Clipping Path Applications - Provides tools for restricting rendering areas using defined vector paths or alpha masks.
  • Surface Patterns - Supports filling shapes and strokes using repeating surface patterns and gradients.
  • Image Processing - Pure Go 2D rendering library.

Star 历史

fogleman/gg 的 Star 历史图表fogleman/gg 的 Star 历史图表

AI 搜索

探索更多 awesome 仓库

用简单的语言描述您的需求 —— AI 将根据相关性为您从数千个精选开源项目中进行排序。

Start searching with AI

Gg 的开源替代方案

相似的开源项目,按与 Gg 的功能重合度排序。
  • sixlabors/imagesharpSixLabors 的头像

    SixLabors/ImageSharp

    7,954在 GitHub 上查看↗

    ImageSharp is a .NET image processing library and manipulation framework used for decoding, encoding, and modifying digital images. It functions as a comprehensive toolkit for resizing, cropping, and applying pixel-level filters while managing color profiles and pixel data across various file formats. The project integrates a 2D vector graphics engine and a typography rendering engine to draw geometric shapes, paths, and complex stylized text onto images. It also includes a geometry boolean operation library for calculating intersections, unions, and differences between complex polygons and c

    C#bmpc-sharpdrawing
    在 GitHub 上查看↗7,954
  • software-mansion/react-native-svgsoftware-mansion 的头像

    software-mansion/react-native-svg

    7,990在 GitHub 上查看↗

    This project is a graphics library for React Native that provides a cross-platform vector rendering engine. It maps SVG XML elements to native graphics APIs, allowing for the creation of scalable shapes and custom illustrations that maintain visual consistency across mobile and web environments. The library functions as a mapper that converts standard SVG markup into declarative component structures. It enables the creation of interactive vector interfaces by providing components that can detect and respond to user touch events. Its capability surface includes drawing basic geometric primiti

    TypeScript
    在 GitHub 上查看↗7,990
  • leaferjs/leafer-uileaferjs 的头像

    leaferjs/leafer-ui

    4,184在 GitHub 上查看↗

    Leafer UI is a high-performance HTML5 canvas rendering engine and 2D vector graphics library. It utilizes a hierarchical scene tree to manage shapes, paths, and text, providing a toolkit for building interactive canvas applications and expansive infinite canvases. The engine is designed as a cross-platform canvas toolkit that decouples core logic from the drawing API, allowing it to run across web, mobile, server, and mini-program environments. It distinguishes itself by providing specialized tools for interactive graphic editor development, including hit detection, event bubbling, and transf

    TypeScriptcanvasinfinite-canvasleafer
    在 GitHub 上查看↗4,184
  • exyte/macawexyte 的头像

    exyte/Macaw

    6,050在 GitHub 上查看↗

    Macaw is a Swift vector graphics library and animation framework used to create and render scalable geometric shapes and text. It functions as an SVG rendering engine and an interactive vector graphics toolkit for displaying complex artwork while maintaining image quality at any scale. The framework enables the animation of shape properties and node transformations, including the ability to morph one vector path into another. It allows for the integration of external SVG files and the application of linear and radial gradients to fills and strokes. The toolkit covers a range of capabilities

    Swiftanimationdrawinggraphics
    在 GitHub 上查看↗6,050
查看 Gg 的所有 30 个替代方案→

常见问题解答

fogleman/gg 是做什么的?

gg 是一个 Go 语言 2D 图形库和矢量图形引擎,专为程序化图像生成而设计。它提供了一个画布渲染 API 来创建自定义 2D 形状、路径和视觉资产,并可导出为 PNG 和 JPG 文件。

fogleman/gg 的主要功能有哪些?

fogleman/gg 的主要功能包括:2D Vector Graphics Libraries, Canvas Rendering, Canvas and Paint APIs, Canvas Coordinate Transformations, Programmatic Image Toolkits, Go Graphics Libraries, Shape Drawing, Path Geometry Construction。

fogleman/gg 有哪些开源替代品?

fogleman/gg 的开源替代品包括: sixlabors/imagesharp — ImageSharp is a .NET image processing library and manipulation framework used for decoding, encoding, and modifying… software-mansion/react-native-svg — This project is a graphics library for React Native that provides a cross-platform vector rendering engine. It maps… leaferjs/leafer-ui — Leafer UI is a high-performance HTML5 canvas rendering engine and 2D vector graphics library. It utilizes a… gcssloop/androidnote — AndroidNote is a technical knowledge base and reference resource for Android development. It provides comprehensive… exyte/macaw — Macaw is a Swift vector graphics library and animation framework used to create and render scalable geometric shapes… konvajs/react-konva — react-konva is a declarative React canvas graphics library and 2D vector graphics framework. It serves as a rendering…