
{"id":2079,"date":"2026-07-24T17:14:03","date_gmt":"2026-07-24T15:14:03","guid":{"rendered":"https:\/\/www.pcjv.de\/?page_id=2079"},"modified":"2026-07-24T17:14:11","modified_gmt":"2026-07-24T15:14:11","slug":"agg-go","status":"publish","type":"page","link":"https:\/\/www.pcjv.de\/?page_id=2079","title":{"rendered":"agg_go"},"content":{"rendered":"\n\n<p class=\"wp-block-paragraph\">Alongside audio, 2D graphics has been the second constant in my work &mdash; from the Graphics32 team years and AggPasMod to today. <a href=\"https:\/\/github.com\/CWBudde\/agg_go\" target=\"_blank\" rel=\"noopener\">agg_go<\/a> is the modern chapter of that thread: a port of Anti-Grain Geometry to Go.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">An old friend, ported twice<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">I did this once before, fifteen years ago, when I turned AggPas into <a href=\"\/?page_id=1268\">AggPasMod<\/a> for modern Delphi. AGG&#8217;s approach &mdash; high-quality software rasterization with sub-pixel accuracy, built from small composable pipeline stages &mdash; has aged remarkably well, and porting it a second time was like meeting an old friend who has not changed while you have. This time the assembler optimizations of the Pascal era give way to Go&#8217;s tooling, tests and portability.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Examples<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A few of the classic AGG demos, rendered by agg_go &mdash; or run them yourself in the <a href=\"https:\/\/cwbudde.github.io\/agg_go\/\" target=\"_blank\" rel=\"noopener\">live WebAssembly demo<\/a>:<\/p>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-2 wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" data-id=\"2050\" src=\"\/wordpress\/wp-content\/uploads\/agg_go-gouraud-shading.png\" alt=\"Gouraud shading demo rendered by agg_go\" class=\"wp-image-2050\"\/><figcaption class=\"wp-element-caption\">Gouraud shading<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" data-id=\"2051\" src=\"\/wordpress\/wp-content\/uploads\/agg_go-gradient-contours.png\" alt=\"Gradient-filled contours demo rendered by agg_go\" class=\"wp-image-2051\"\/><figcaption class=\"wp-element-caption\">Gradient-filled contours<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" data-id=\"2052\" src=\"\/wordpress\/wp-content\/uploads\/agg_go-circles.png\" alt=\"Anti-aliased circles demo rendered by agg_go\" class=\"wp-image-2052\"\/><figcaption class=\"wp-element-caption\">Anti-aliased circles<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" data-id=\"2053\" src=\"\/wordpress\/wp-content\/uploads\/agg_go-compound-rasterizer.png\" alt=\"Compound rasterizer demo rendered by agg_go\" class=\"wp-image-2053\"\/><figcaption class=\"wp-element-caption\">Compound rasterization<\/figcaption><\/figure>\n<\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Why ports?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Three of my larger projects are ports (AggPasMod, agg_go, go-dws). A good port is an act of preservation and a masterclass at once: you inherit two decades of edge cases already solved, and you understand every line because you had to retype it with intent. The originals were excellent; keeping them usable on modern stacks feels like honest work.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">agg_go is the rendering foundation for <a href=\"\/?page_id=2080\">matplotlib-go<\/a>, my plotting library. The story of both is <a href=\"\/?p=1979\">on the blog<\/a>.<\/p>\n\n\n","protected":false},"excerpt":{"rendered":"<p>Alongside audio, 2D graphics has been the second constant in my work &mdash; from the Graphics32 team years and AggPasMod to today. agg_go is the modern chapter of that thread: a port of Anti-Grain Geometry to Go. An old friend, ported twice I did this once before, fifteen years ago, when I turned AggPas into [&hellip;]<\/p>\n","protected":false},"author":0,"featured_media":0,"parent":2075,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-2079","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>agg_go - Christian&#039;s private site<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.pcjv.de\/?page_id=2079\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.pcjv.de\\\/?page_id=2079\",\"url\":\"https:\\\/\\\/www.pcjv.de\\\/?page_id=2079\",\"name\":\"agg_go - Christian&#039;s private site\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.pcjv.de\\\/#website\"},\"datePublished\":\"2026-07-24T15:14:03+00:00\",\"dateModified\":\"2026-07-24T15:14:11+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.pcjv.de\\\/?page_id=2079#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.pcjv.de\\\/?page_id=2079\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.pcjv.de\\\/?page_id=2079#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.pcjv.de\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Go Projects\",\"item\":\"https:\\\/\\\/www.pcjv.de\\\/?page_id=2075\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"agg_go\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.pcjv.de\\\/#website\",\"url\":\"https:\\\/\\\/www.pcjv.de\\\/\",\"name\":\"Christian&#039;s private site\",\"description\":\"Private site of Christian-W. Budde\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.pcjv.de\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"agg_go - Christian&#039;s private site","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.pcjv.de\/?page_id=2079","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.pcjv.de\/?page_id=2079","url":"https:\/\/www.pcjv.de\/?page_id=2079","name":"agg_go - Christian&#039;s private site","isPartOf":{"@id":"https:\/\/www.pcjv.de\/#website"},"datePublished":"2026-07-24T15:14:03+00:00","dateModified":"2026-07-24T15:14:11+00:00","breadcrumb":{"@id":"https:\/\/www.pcjv.de\/?page_id=2079#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.pcjv.de\/?page_id=2079"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.pcjv.de\/?page_id=2079#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.pcjv.de\/"},{"@type":"ListItem","position":2,"name":"Go Projects","item":"https:\/\/www.pcjv.de\/?page_id=2075"},{"@type":"ListItem","position":3,"name":"agg_go"}]},{"@type":"WebSite","@id":"https:\/\/www.pcjv.de\/#website","url":"https:\/\/www.pcjv.de\/","name":"Christian&#039;s private site","description":"Private site of Christian-W. Budde","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.pcjv.de\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/www.pcjv.de\/index.php?rest_route=\/wp\/v2\/pages\/2079","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.pcjv.de\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.pcjv.de\/index.php?rest_route=\/wp\/v2\/types\/page"}],"replies":[{"embeddable":true,"href":"https:\/\/www.pcjv.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2079"}],"version-history":[{"count":1,"href":"https:\/\/www.pcjv.de\/index.php?rest_route=\/wp\/v2\/pages\/2079\/revisions"}],"predecessor-version":[{"id":2087,"href":"https:\/\/www.pcjv.de\/index.php?rest_route=\/wp\/v2\/pages\/2079\/revisions\/2087"}],"up":[{"embeddable":true,"href":"https:\/\/www.pcjv.de\/index.php?rest_route=\/wp\/v2\/pages\/2075"}],"wp:attachment":[{"href":"https:\/\/www.pcjv.de\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2079"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}