pagen

command module
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 16, 2025 License: CC0-1.0 Imports: 12 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

pagen

CI Go Reference Go version

pagen is a command-line utility for generating pixel art written in Go.

The value of each pixel is determined from random numbers.

Installation

From source
go install github.com/sorairolake/pagen@latest
From binaries

The release page contains pre-built binaries for Linux, macOS, Windows and others.

How to build

Please see BUILD.adoc.

Usage

Basic usage
pagen -width 1280 -height 720 -block-size 80 output.png

Here is an example of generated pixel art:

Output

Generate as a SVG image
pagen -width 1280 -height 720 -block-size 80 -svg output.svg

Here is an example of generated pixel art:

Output

Source code

The upstream repository is available at https://github.com/sorairolake/pagen.git.

Changelog

Please see CHANGELOG.adoc.

Contributing

Please see CONTRIBUTING.adoc.

License

Copyright (C) 2025 Shun Sakai (see AUTHORS.adoc)

This program is distributed under the terms of the CC0 1.0 Universal.

This project is compliant with version 3.3 of the REUSE Specification. See copyright notices of individual files for more details on copyright and licensing information.

Documentation

Overview

Pagen generates pixel art. The value of each pixel is determined from random numbers.

By default, this will generate a PNG image with the size of 256×256 pixels and the block size of 1×1 pixel.

Usage:

pagen [OPTIONS] <FILE>

Arguments:

<FILE>
	The path of the generated image file.

Options:

-width <SIZE>
	Set the width of pixel art. Default is 256.
-height <SIZE>
	Set the height of pixel art. Default is 256.
-block-size <SIZE>
	Set the block size of pixel art. Default is 1.
-svg
	Generate SVG file instead of PNG file.
-version
	Print version number.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址