Skip to content

uninhm/pixel-editor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Untitled_video_-_Made_with_Clipchamp_1.mp4

pixel-editor

A tool for pixel writing.

Table of contents

  1. Description
  2. Compilation
  3. Planned features
  4. Usage
    1. Movement
    2. Zooming
    3. Drawing
    4. Keys
    5. Data file

Description

This tools is designed to let the user import a set of 5x5 patterns that can be searched by keywords. You search the pattern you want, you click it and then you click where you want to paste it.

Compilation

Just like any cargo package.

cargo build --realease

Planned features

  • Save drawing
  • Import drawing
  • Export drawing
  • Settings file
  • Settings GUI
  • Colors
  • Select cells
  • Delete selection
  • Display selection's meaning
  • Undo
  • Redo
  • Toggle grid with g

Usage

Movement

  • Click and drag with the middle button to move the canvas.

Zooming

  • Zoom in and out with the mouse wheel.

Drawing

  • Left click to switch a pixel on and off.
  • Left click and drag will copy the resulting color after switching to the pixels you pass by.

Keys

  • / to focus the search bar.
  • Esc to unselect a pattern without pasting it.
  • g to toggle the grid.
  • u to undo.

Data file

Create a file called data.csv with your patterns in the following format (no headers):

pattern1, word1, word2, word3
pattern2, word4, it can be a phrase, word5, wor6
[...]

As for the pattern, it's a binary representation of it, from left to right, top to bottom, msb first. If you pattern is:

01001
10100
10101
10101

Valid representations would be: 0b01001101001010110101, 0x4d2b5 and 316085.

About

A tool for pixel writing.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages