Skip to content

Instantly share code, notes, and snippets.

@nyoicode
nyoicode / ChoasLinesShader.metal
Created May 23, 2024 02:25 — forked from realvjy/ChoasLinesShader.metal
Choas Lines - Metal Shader
// Lines
float hash( float n ) {
return fract(sin(n)*753.5453123);
}
// Slight modification of iq's noise function.
float noise(vector_float2 x )
{
vector_float2 p = floor(x);
vector_float2 f = fract(x);
@nyoicode
nyoicode / index.html
Created May 19, 2024 03:37
WebGL liquid masking
<div class="content">
<img src="https://ksenia-k.com/img/ksenia.jpg"/>
</div>
<canvas></canvas>
<div class="overlay">
Liquid content reveal
</div>
@nyoicode
nyoicode / index.html
Created May 19, 2024 03:34
Split-flap display animation
<div class="outer">
<div class="flap" id="flap" style={flapStyle}></div>
<div class="flap top"></div>
<div class="flap bottom"></div>
<div class="gap"></div>
</div>
<button onclick="start()">Start</button>
<button onclick="slow()">Slow</button>