{"repo":"peterhellberg/gfx","free":true,"listed":false,"github":"https://github.com/peterhellberg/gfx","clone":"git clone https://github.com/peterhellberg/gfx.git","description":"Convenience package for dealing with graphics in my pixel drawing experiments.","language":"Go","stars":150,"topics":["graphics","go","drawing","vectors","matrix","polygons","palettes","simplex","noise","signed-distance-functions"],"license":"MIT","category":"chat-messaging","readme_excerpt":"gfx Convenience package for dealing with graphics in my pixel drawing experiments. :warning: NO STABILITY GUARANTEES :warning: Triangles Triangles can be drawn to an image using a gfx.DrawTarget . [embedmd]:# (examples/gfx-example-triangles/gfx-example-triangles.go) Batch gfx.Batch accumulates many transformed instances of a triangle template into a single container and lets you flush them onto a destination in one Draw call. Change the Batch's matrix between draws to position, rotate and scale each instance. [embedmd]:# (examples/gfx-example-batch/gfx-example-batch.go) Polygons A gfx.Polygon is represented by a list of vectors. There is also gfx.Polyline which is a slice of polygons forming a line. [embedmd]:# (examples/gfx-example-polygon/gfx-example-polygon.go) Blocks You can draw (isometric) blocks using the gfx.Blocks and gfx.Block types. [embedmd]:# (examples/gfx-example-blocks/gfx-example-blocks.go) Signed Distance Functions The gfx.SignedDistance type allows you to use basic signed distance functions (and operations) to produce some interesting graphics. [embedmd]:# (examples/gfx-example-sdf/gfx-example-sdf.go) Domain Coloring You can use the CmplxPhaseAt method on a gfx.Palette to do domain coloring. [embedmd]:# (examples/gfx-example-domain-coloring/gfx-example-domain-coloring.go) Animation There is rudimentary support for making animations using gfx.Animation , the animations can then be encoded into GIF. [embedmd]:# (examples/gfx-example-animation/gfx-example-anima","default_branch":null,"files":null,"tree":[],"storefront":"/r/peterhellberg","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/peterhellberg/gfx/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}