Skip to content

Instantly share code, notes, and snippets.

@Trissolo
Trissolo / .description.md
Last active August 9, 2023 04:24
online test assets

Omnifarious assets

m e700
(>C.{60})
(\(.+\)).+\n
// Super simple pathfinding library
class Node {
constructor(userData=null) {
this.connected = [];
this.userData = userData;
}
connect(node, weight=1, oneWay=false) {
this.connected.push({ node, weight });
@Trissolo
Trissolo / .block
Created September 19, 2021 06:12 — forked from mbostock/.block
Poisson-Disc
license: gpl-3.0
@Trissolo
Trissolo / 31505838.png
Last active November 9, 2021 22:41
Test_audio.txt
31505838.png
@Trissolo
Trissolo / commands.txt
Created June 16, 2021 03:54 — forked from JesseRWeigel/commands.txt
ImageMagick Compression Commands
// Must install ImageMagick first
http://www.imagemagick.org/script/index.php
//This compresses a jpg with no visible loss of quality. Add in your own file names for target.jpg and result.jpg
convert -strip -interlace Plane -sampling-factor 4:2:0 -quality 85% target.jpg result.jpg
// This does the same as above but to an entire folder (will overwrite original files):
mogrify -strip -interlace Plane -sampling-factor 4:2:0 -quality 85% *.jpg
//This does the same thing but to all subfolders as well (Be careful with this one it will overwrite all original files)
@Trissolo
Trissolo / atlas00.json
Last active February 11, 2021 04:55
test, useless
{"frames": [
{
"filename": "robot_E_interactCenter_0",
"frame": {"x":0,"y":0,"w":22,"h":25},
"rotated": false,
"trimmed": false,
"spriteSourceSize": {"x":0,"y":0,"w":22,"h":25},
"sourceSize": {"w":22,"h":25}
},
@Trissolo
Trissolo / a_few_PythonFu_scripts.md
Last active April 1, 2025 06:24
gimp-fu, gimpfu, json, gimp, convert, ico, cur, python, ico_to_cur

Some Python-Fu (GIMP) scripts

File Description
bitmap_font_gimp.py Generate .xml files to use custom Bitmap Fonts in Phaser 3.
exported_ico_to_cur.py Convert an .ico file generated by Gimp in .cur by setting x & y coordinates.
gimp_minimal_room_data_json.py Generate a .json file for my personal use. The decent one.
mio_gimp_fu_polygon_points_to_json.py Gimp plugin: Paths coordinates to text (sort of .json). For my personal use.
[poly_mio_json_safe.py ](https://gist.github.com/Trissolo/13e597571f4d801b79c85f38dc1d2d31#file-poly_mio_jso