Skip to content

Instantly share code, notes, and snippets.

@yeezylife
yeezylife / adaptive-sharpen.glsl
Last active February 18, 2025 01:22 — forked from igv/adaptive-sharpen.glsl
LUMA version of igv's adaptive-sharpen.With curve_height 0.1 and only works when downscaling is needed.
// Copyright (c) 2015-2021, bacondither
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer
// in this position and unchanged.
// 2. Redistributions in binary form must reproduce the above copyright
@dkaraush
dkaraush / oklch2rgb.js
Last active March 11, 2025 18:18
conversion OKLCH into RGB and RGB into OKLCH in js, simplified
const multiplyMatrices = (A, B) => {
return [
A[0]*B[0] + A[1]*B[1] + A[2]*B[2],
A[3]*B[0] + A[4]*B[1] + A[5]*B[2],
A[6]*B[0] + A[7]*B[1] + A[8]*B[2]
];
}
const oklch2oklab = ([l, c, h]) => [
l,
@JySzE
JySzE / mpv.conf
Last active March 9, 2025 07:06
JySzE MPV Config
# Version 3.0
# 03/08/2025
###############################################################################################################################################
# Player GUI Options
###############################################################################################################################################
# Adjust all as needed.