canvas
gg
Our great sponsors
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
canvas
-
Canvas vector graphics update: rich text and path boolean operation support
I wanted to share a recent large update to https://github.com/tdewolff/canvas, which is a vector graphics library written in Go to create images, PDFs, SVGs, OpenGL, etc. using vector drawing operations. Especially I wanted to show two new exciting features:
- Pixie – A full-featured 2D graphics library for Nim
-
Processing equivalent in GoLang
https://github.com/tdewolff/canvas/blob/master/examples/opengl/main.go can draw primitves but i think it would be a bit hard to do event based animation
-
tdewolff/canvas: vector graphics in Go (mayor update)
canvas has a focus on using state-of-the-art algorithms regarding numerical approximations, see https://github.com/tdewolff/canvas#articles for a list of publications used in this library
I see, you'd like to specify the exact output pixel size for the rasterizers? To be honest, the floats are being multiplied and rounded, so given a set of canvas dimensions in mm and a DPMM should be fine in your case. In any case, I've opened an issue to calculate the resulting DPMM automatically to get a certain pixel width and height: https://github.com/tdewolff/canvas/issues/78
Yes! See https://github.com/tdewolff/canvas/tree/master/examples/gonum-plot for an example using gonum-plot. You should be able to plug-and-play to use the canvas library!
gg
-
I wrote a tool in Go to write Sequence Diagrams in Go
The author explicitly says:
> You don't need to download any dependencies such as plantUML or Graphviz, which is what most of the tools out there require and what was also my motivation to start this project. go-uml is using a 2D graphics engine written 100% in Go https://github.com/fogleman/gg
So no, this is not a solution for these requirements.
-
Golang library similar to Python's pillow
I really like the [fogleman/gg](https://github.com/fogleman/gg) package for image manipulation, it is pure Go and has many functions to draw and manipulate images.
-
Imagor - fast, Docker-ready image processing server written in Go and libvips, with Thumbor URL syntax
I've always used the GG library for my image processing needs, and I've heard of libvips somewhere before (likely from the Node.js world) but didn't know it had a Go port/wrapper. :) I'll definitely check that out as well
-
Trying out some new generative techniques with Go.
Mainly, the standard library and my favorite gg.
-
Processing equivalent in GoLang
Have you been hit by https://github.com/fogleman/gg/issues/85 when writing your book?
No sure if https://github.com/fogleman/gg was mentioned, but it should pretty much cover anyone’s basic needs. I used to do a lot of Processing about 7-8 years ago, and it certainly works for my stuff. I am now doing most of generative art in Go, using gg as a basis. It’s a bit bare bones, but also comes without any complicated dependencies.
-
Putting Text on an Image with Golang
That piece of code makes all the magic. With the help of Fogleman library manipulating images in Go is a breeze. Let's check what this is doing:
-
Libraries for animating 2D simulation results
Another alternative for drawing 2D graphics is https://github.com/fogleman/gg
What are some alternatives?
svgo - Go Language Library for SVG generation
tiny-skia - A tiny Skia subset ported to Rust
go-cairo - Go binding for the cairo graphics library
generative-art-in-go - A companion source code repository to the book "Generative Art in Go"
img - A selection of image manipulation tools
go-opencv - Go bindings for OpenCV / 2.x API in gocv / 1.x API in opencv
go-nude - Nudity detection with Go.
pigo - Fast face detection, pupil/eyes localization and facial landmark points detection library in pure Go.
Primitive Pictures - Reproducing images with geometric primitives.
govips - A lightning fast image processing and resizing library for Go