Skip to content

Instantly share code, notes, and snippets.

View mairod's full-sized avatar

Dorian Lods mairod

View GitHub Profile
magick convert T_Ceramic_M.png T_Ceramic_R.png T_Ceramic_M.png -channel RGB -combine T_Ceramic_MR.png
@mairod
mairod / Tezos auth
Created September 11, 2021 13:44
Tezos auth
I am attesting that this GitHub handle mairod is linked to the Tezos account tz2At5T1CLTcoF97ScUcbrekeHdPXwvQ3yWt for tzprofiles
sig:spsig1WsGppaWr4GdD3uXQ9rMDz1zRrVyrtHL7DxwyqPZ5FeHL4hyAdQ5JDXdKMKDqnK2AwMgcs1pWx8WMQhZ6qCjZcFx7u3XZX
// Copy attributes from particles to surface
int handle;
handle = pcopen(@OpInput2, “P”, @P, 1000, 1);
@v = pcfilter(handle, “v”);
// @Cd = pcfilter(handle, “Cd”);
pcclose(handle);
@mairod
mairod / spriteImageMagick.sh
Created July 17, 2018 22:31
Sprite Imagemagick packing
montage ./*.png -tile 10x -geometry 270x270+0+0 -background transparent sprite.png
@mairod
mairod / Webgl shader Hue Shift function
Last active October 14, 2024 08:33
Optimised Hue shift function in GLSL
vec3 hueShift( vec3 color, float hueAdjust ){
const vec3 kRGBToYPrime = vec3 (0.299, 0.587, 0.114);
const vec3 kRGBToI = vec3 (0.596, -0.275, -0.321);
const vec3 kRGBToQ = vec3 (0.212, -0.523, 0.311);
const vec3 kYIQToR = vec3 (1.0, 0.956, 0.621);
const vec3 kYIQToG = vec3 (1.0, -0.272, -0.647);
const vec3 kYIQToB = vec3 (1.0, -1.107, 1.704);