https://github.com/akatsuki105/hq2xgo
Enlarge image by 2x with hq2x algorithm
https://github.com/akatsuki105/hq2xgo
emulator game go golang hq2x hqx pixel-art scaling-algorithms
Last synced: 11 days ago
JSON representation
Enlarge image by 2x with hq2x algorithm
- Host: GitHub
- URL: https://github.com/akatsuki105/hq2xgo
- Owner: akatsuki105
- Created: 2020-03-15T22:56:00.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-03-18T18:22:42.000Z (about 2 years ago)
- Last Synced: 2025-05-01T00:38:02.771Z (17 days ago)
- Topics: emulator, game, go, golang, hq2x, hqx, pixel-art, scaling-algorithms
- Language: Go
- Homepage:
- Size: 83 KB
- Stars: 14
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# hq2xgo
 [](https://godoc.org/github.com/pokemium/hq2xgo)
Enlarge image by 2x with hq2x algorithm
## Example(Before -> After)
![]()
![]()
## Usage
### command line
```sh
$ make build # require make and go
$ hq2x input.png output.png
```### golang package
See [godoc](https://godoc.org/github.com/Akatsuki-py/hq2xgo) for details.
```sh
$ go get github.com/pokemium/hq2xgo
``````go
import (
hq2x "github.com/pokemium/hq2xgo"
)after, err := hq2x.HQ2x(before) // var before *image.RGBA
```## Measure benchmark
```sh
$ cd cmd/
$ go test -bench .
```