Skip to content

Commit

Permalink
Update readme.md
Browse files Browse the repository at this point in the history
codequotes
  • Loading branch information
Martin Wisniowski authored Jun 27, 2016
1 parent 11540d5 commit ad20667
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,26 @@ pic2pico. A simple tool, converts pico-8 palette ready .png images to native p8-

This is a script, written in Ruby. It requires the 'chunky_png'-gem (http://chunkypng.com). To install this gen, it should be enought, to just install by typing the following into the terminal:

```
[sudo] gem install chunky_png
```

# How to run

Run the example and spill the pico-8 lua-code into the terminal. Copy and paste this code into pico-8 an enjoy watching the picture.

```
ruby pic2pico.rb
```

...same with loading a custom image

```
ruby pic2pico.rb "$PATH_TO/my_img.png"
```

Append the generated code automatically to an existing.p8 file:

ruby pic2pico.rb "$PATH_TO/my_img.png" >> program.p8
```
ruby pic2pico.rb "$PATH_TO/my_img.png" >> program.p8
```

0 comments on commit ad20667

Please sign in to comment.