An open API service indexing awesome lists of open source software.

https://github.com/peterhellberg/png2src

Convert .png into source code as described by the template used.
https://github.com/peterhellberg/png2src

cli

Last synced: 6 months ago
JSON representation

Convert .png into source code as described by the template used.

Awesome Lists containing this project

README

          

# png2src

Convert `.png` into source code as described by the template used.

By default this tool expects a `image.tpl` in the current working directory.

## Example template

When I want a Zig :zap: constant of type `Image` I might have a template such as this:

```zig
pub const {{.Name}} = Image{
.name = "{{.Name}}",
.width = {{.Width}},
.height = {{.Height}},
.data = &.{ {{.BytesString}} },
};
```