For the best experience, run the tool Here

*Due to itch.io's security policy, the copy/paste buttons do not work, by lack of clipboard api permissions within the iframe that itch runs your html5 in. This is because the javascript reads/writes text to the clipboard, in order to import palette's and copy sprite & pixel data (for TIC80 users) via a convenient button-press, instead of manual entry. The github page that runs the app however does not have this issue and works fine. Enjoy!

Introducing Pic2Tic

Ever wanted to convert your images to a 16-color format for the TIC-80 fantasy console? Look no further than Pic2Tic. Originally crafted during the development of Craptorio, a work-in-progress Factorio de-make for TIC-80, this tool promises to be indispensable to every TIC-80 creator out there. The tool can also be used to convert images & add dithering for any other use, or just to apply a fun palette!


Key Features:

  • Load any image and seamlessly reduce it to 16 colors, with optional high-quality dithering.
  • Drag & drop image functionality & operate on multiple images simultaneously.
  • Choose from over 100+ palettes, hand-selected from lospec.com, or go for retro computer palettes.
  • Generates a palette based on image colors for optional use
  • Copy and paste palettes with 1-click.
  • Customize your palette with a simple color picker, then copy it with 1-click.
  • Export in TIC-80's pixel or sprite format, or original image format.
  • Non-destructive workflow: always work on a copy of your original image.
  • Intuitive notifications to guide your workflow.
  • Utilizes RgbQuant.js for extremely fast & efficient color quantization & dithering.
  • Open source (MIT)

Advanced Image Settings:

Choose a dithering kernel (or no dithering), toggle optional serpentine dithering pattern, and decide whether you want to use the image's natural palette or a preset.


Special Functions:

  • Download Image: Grab a copy of any processed image.
  • Copy Pixel Data: Get a table of pixels (converted to palette indices/ indexed form) copied to the clipboard.
  • Copy Sprite Data: To paste converted  images as sprites in your TIC-80 cart file.
  • Customizing Palette: Personalize any palette effortlessly with RGB sliders, or manual text entry.
  • Paste Palette: (Clipboard icon) Click to import a custom palette

Link With TIC-80:

Interact between TIC80 and Pic2Tic using advanced copy & paste functions. Get the essence of your sprites image right into your game or demo!


See the github  Documentation & Source for all options and settings.

I like coffee :D

Lua Function for TIC-80:

function draw_image(x, y, width, height, pixel_data, color_key)
  color_key = color_key or -1
  for i = 0, width - 1 do
    for j = 0, height - 1 do
      local index = j * width + i
      if pixel_data[index] ~= color_key then
        pix(x + i, y + j, pixel_data[index])
      end
    end
  end

Note: This is a base function to assist in drawing images in TIC-80. Modify as per your needs!

Legacy:

If you're interested in exploring the older version of Pic2Tic, make sure to check out the Legacy branch.

So, are you ready to transform your images and elevate your TIC-80 creations? Dive in and explore Pic2Tic!

StatusReleased
CategoryTool
PlatformsHTML5
Rating
Rated 5.0 out of 5 stars
(2 total ratings)
Authorarchaicvirus
Tags2D, 8-Bit, Indie, Pixel Art, Retro, Sprites, Tileset, User Interface (UI)

Leave a comment

Log in with itch.io to leave a comment.