Log In  
Follow
drakmaniso

NOTE: mouse locking seems to be broken on the web player for now, so to try the instrument editor you should load the cart in Picotron instead (i.e. load #visitrack).

Mouse locking also behaves strangely on some platforms (e.g. mac); I added some settings (accessible through the menu) to change the sensitivity and direction, to see if that helps.

Cart #visitrack-2 | 2024-04-24 | Embed ▽ | License: CC4-BY-NC-SA
28

VisiTrack is a music tracker, an alternative to the SFX editor provided with Picotron. This is still a work in progress!

(NOTE: this cartridge requires the last version of Picotron, 0.0.1f)

VisiTrack also contains a fully functional instrument editor, which should be able to do anything the default sfx editor can, but presented in a different way.

[ Continue Reading.. ]

28
3 comments



Cart #okpal-11 | 2025-03-29 | Embed ▽ | License: CC4-BY-NC-SA
99

Okpal is a tool to create and edit color palettes. You can easily use those palettes in your programs, and even directly in Picotron's sprite and map editors.

To use a palette in your programs:

	fetch("pal/0.pal"):poke(0x5000)

Features

  • Any change to the palette is propagated to Picotron's sprite and map editors.
  • Use a perceptually uniform color space (oklab).
  • Choose colors by hue, saturation and lightness.
  • Reorder colors by drag-and-drop.
  • Supports two file formats: ".hex" and ".pal"
  • Multiple options for importing external palettes (keep default palette, overwrite it, or try to match it)

Changelog

2025-03-18: version 1.2.1 (release #okpal-10)

  • Added: "Export File" menu entry to save a copy of the current file without opening it.
  • Changed: ".hex" files are saved without metadata.
  • Changed: dragging color dots is much more precise.
  • Changed: constrain color changes along an axis when dragging a color dot
    using the right or middle mouse buttons (instead of holding "shift" or "control").
  • Changed: bigger color dots, easier to grab.
  • Changed: propagate palette to sprite and map editors only when focus is lost.
  • Changed: Don't automatically register as default app for ".pal" and ".hex".
  • Fixed: bug in opening files (due to bug in picotron's wrangle.lua since 0.1.1e)
  • Fixed: reset display palette rows when hiding the color band.


2025-03-13: version 1.2.0 (release #okpal-9)

  • Added: new alternate view with hue/lum and hue/sat pickers.
  • Added: hold "shift" or "ctrl" when dragging a color dot to constrain the change along one axis.
  • Added: ability to scroll the hue axis of the alternate view, either with the scroll wheel or the dedicated control at the bottom of the screen.
  • Added: color names in the alternate view.
  • Added: color band in the alternate view.
  • Added: settings to hide the color names and color band.
  • Changed: simplified the old view (remove color lines on the 1D sliders)

2025-03-08: version 1.1.0 (release #okpal-8)

  • removed remapping option when importing ".hex" palettes (was not working very well anyway);
  • added text entries for the hex code, the hue, the saturation and the luminance;
  • added a new tab for drawing color ramps in the test zone;
  • added dialog when creating a new palette (to choose between empty palette or default colors);
  • added settings dialog;
  • added settings to register OkPal as default app for ".pal" and ".hex" files;
  • added settings for disabling the propagation of the palette to the sprite and map editors;
  • changed dialog when importing ".hex" files;
  • changed dialog for displaying help;
  • fixed menu bar colors when default colors are redefined;
  • fixed undo/redo of test cube color changes;

2025-02-26: version 1.0.4 (release #okpal-7)

  • added registering as default app for ".pal" and ".hex" (needed for the file dialog?)
  • added undo/redo and help buttons;
  • added "clear" button to the "test cubes";
  • added legends for the two pickers;
  • changed: moved the luminance slider to the left of the sat/lum picker for consistency;
  • fixed: palette is now propagated to all gfx and map editors (thanks to Eiyeron for the implementation);
  • fixed: the "test cubes" saved in metadata where not properly loaded;

2024-08-23: version 1.0.3 (release #okpal-6)

  • added: add file icon to saved palettes;
  • changed: can load and import palettes by
    double-clicking in the file dialog (no need
    to drag-and-drop anymore);
  • fixed: bug in BBS;

2024-05-03: version 1.0.2 (release #okpal-5)

  • fixed: bug while using "+" button in Picotron
    0.1.0g;
  • changed: disabled tabs in BBS, as it prevents
    the cart from running;

2024-04-27: version 1.0.1 (release #okpal-4)

  • fixed: picotron's palette was not locked in the
    default file on first opening;
  • fixed: saving a ".pal" file from an imported
    ".hex" file was not working;
  • explain how to export to .hex in the manual;

2024-04-06: version 1.0.0 (release #okpal-3)

  • propagate palette to sprite and map editors;
  • undo/redo;
  • reorder colors by drag-and-drop;
  • import dialog;
  • reorder imported colors to match default colors;
  • added a manual;
  • menu entries to initialize the palette and open
    the manual;
  • flash padlock icon when trying to edit a locked
    color;
  • shift-click paint-bucket icon to change the "white"
    color used in the interface, and ctrl-click the
    icon to change the "black" (useful when importing
    external palettes);

2024-04-02: version 0.0.3 (release #okpal-2)

  • Added the ability to change the background color (by clicking on the small paint bucket icon), and switched the default background to black.
  • Added the ability to import ".hex" files (using drag and drop from the "Open File" dialog); to actually create the ".pal" file, you need to save.
  • Improved the color pickers.
  • Added the ability to copy/paste colors (using a hex string starting with #).
  • Added the ability to show/hide individual colors (right click on a color in the palette).

2024-04-01: v0.0.1 (release #okpal-1)

  • Added the ability to lock colors, to avoid accidentally modifying them. By default the first 33 colors are locked (click on the padlock to unlock)
  • Added the ability to hide specific rows of color from the two color pickers.
  • Added sliders to change the individual components (hue, saturation and luminance).
  • Added the ability to select a color by clicking on their dot in the color pickers.
  • Added a test zone, with 24 paintable cubes (click on a cube face to change its color).
99
38 comments



Cart #font_utils-0 | 2024-03-29 | Embed ▽ | License: CC4-BY-NC-SA
16

This cartridge contains two command line utilities, font2gfx and gfx2font, to perform conversion between fonts and sprite sheets.

Installation

First, load the cart with load #font_utils.

After loading, you have two options:

  • Either an automatic installation: run the cart (press CTRL-R) and follow the instructions.
  • or a manual installation:
    • cp /ram/cart/exports/appdata/system/util/font2gfx.lua /appdata/system/util/
    • cp /ram/cart/exports/appdata/system/util/gfx2font.lua /appdata/system/util/

Usage

Converting a font into a sprite sheet

Use font2gfx input.font

This will create two files: a gfx file containing the sprite sheet, and a lua file containing the configuration of the font (character width, height, variable width offsets, and so on).

[ Continue Reading.. ]

16
5 comments