Skip to content

Instantly share code, notes, and snippets.

@mikhailov-work
mikhailov-work / turbo_colormap.glsl
Last active May 5, 2026 20:35
Turbo Colormap Polynomial Approximation in GLSL
// Copyright 2019 Google LLC.
// SPDX-License-Identifier: Apache-2.0
// Polynomial approximation in GLSL for the Turbo colormap
// Original LUT: https://gist.github.com/mikhailov-work/ee72ba4191942acecc03fe6da94fc73f
// Authors:
// Colormap Design: Anton Mikhailov (mikhailov@google.com)
// GLSL Approximation: Ruofei Du (ruofei@google.com)
--- Parseimg, v0.1
--
-- A library for turning love2d ImageData into high-level datastructures.
--
-- MIT License
--
-- Copyright (c) 2017 Kyle McLamb <alloyed@tfwno.gf>
--
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and associated documentation files (the "Software"), to deal
@mpeterv
mpeterv / luacheck-build.sh
Last active April 29, 2018 16:25
Cross-compile luacheck.exe
#!/usr/bin/env bash
# TODO: write a program called `rock2bin` that does this all in
# one call (`rock2bin luacheck -l 5.3 -t windows`).
mkdir build
curl https://www.lua.org/ftp/lua-5.3.4.tar.gz | tar xz
luarocks unpack luafilesystem 1.6.3-2
luarocks unpack lanes 3.10.1-1