• Stars
    star
    137
  • Rank 266,121 (Top 6 %)
  • Language
    Haskell
  • License
    Other
  • Created almost 12 years ago
  • Updated almost 10 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Pixel art for games

BigPixel

BigPixel is an image editor for pixel art. It is aimed at creating graphics assets for retro or Minecraft-style 2D games. It supports the creation of pixelated images with 8x8 big pixels in 256 colours including some with transparency. It is an OpenGL-based cross-platform application. BigPixel currently only supports the BMP image format.

As BigPixel is a plain OpenGL application without platform-specific GUI support, you need to start it as a command line program and supply it with the name of a BMP image file as its sole command line argument. If the file exists, it will be opened for editing; otherwise, a new file will be created. All changes made to an image are persistent — i.e., reflected in the on disk image without explicit saving.

Left mouse button           — draw with current colour
Left mouse button + Shift   — erase with transparency
Left mouse button + Control — pick colour from image
Right mouse button          — erase with transparency
'W', 'S', 'A', 'D'          — enlarge canvas to the top, bottom, left, and right, respectively
'W', 'S', 'A', 'D' + Shift  — shrink canvas from the top, bottom, left, and right, respectively

WARNING: There is currently no undo facility! Make copies of image files if you are unsure whether you like to keep the changes. (However, if you shrink the visible canvas, the removed content can be restored by simply enlarging the canvas again.)

Screenshot of BigPixel

Installation

You need to have the Glasgow Haskell Compiler to compile from source. It is available as part of the Haskell Platform.

To install the current release of BigPixel from Hackage, simply execute

% cabal install BigPixel

To install the current version from GitHub,

% git clone https://github.com/mchakravarty/BigPixel.git
% cd BigPixel
% cabal install

Hacking

The Haskell code is relatively simple on purpose. It is part of an effort to teach programming to children. Contributions are most welcome, but please keep them in this spirit.

More Repositories

1

CodeEditorView

SwiftUI code editor view for iOS and macOS
Swift
564
star
2

HaskellSpriteKit

Haskell binding to Apple's SpriteKit framework
Haskell
172
star
3

language-c-inline

Inline C & Objective-C in Haskell
Haskell
147
star
4

lets-program

Let's program! Get into programming writing a simple game.
Haskell
76
star
5

lazy-lambda

Lazy Lambda — a Flappy Bird clone in Haskell with SpriteKit
Haskell
73
star
6

goalsapp

Track periodic goals — a sample iPhone app
Swift
27
star
7

haskell.sty

LaTeX style file to typeset functional languages like Haskell
26
star
8

ProjectNavigator

SwiftUI project navigation view for macOS and iOS
Swift
21
star
9

gloss-game

A convenience wrapper around the Gloss library to make writing games in Haskell even easier
Haskell
17
star
10

hoas-conv

Toy language to show the conversion of embedded higher-order abstract syntax (HOAS)
Haskell
17
star
11

CodeEditorDemo

Demo app for CodeEditorView
Swift
16
star
12

language-swift-quote

Quasiquotation for Swift in Haskell
9
star
13

welcome-to-fp-workshop

Support material for the “Introduction to Functional Programming” workshop @ the "Welcome to Functional Programming" day of YOW! Lambda Jam, Sydney, 2018 & 2019
8
star
14

fp-in-swift

Support material for "Functional Programming in Swift" @ Functional Conf, Bangalore, 2017
Swift
7
star
15

accelerate-agda

Accelerate in Agda
Haskell
6
star
16

ylj14-workshop

Code for the YOW! Lambda Jam Workshop on Inline C in Haskell
Haskell
3
star
17

galactico

Drive the economy of galactic colonies
Haskell
3
star
18

haskell-containers

Docker container images for Haskell apps
2
star
19

lets-code

Let's code! A playful introduction to coding
Haskell
1
star