Skip to content

Instantly share code, notes, and snippets.

View cassieevans's full-sized avatar

Cassie Evans cassieevans

View GitHub Profile
float circ(vec2 p){
return length(p) - 0.5;
}
// http://www.iquilezles.org/www/articles/palettes/palettes.htm
// As t runs from 0 to 1 (our normalized palette index or domain),
//the cosine oscilates c times with a phase of d.
//The result is scaled and biased by a and b to meet the desired constrast and brightness.
vec3 cosPalette( float t, vec3 a, vec3 b, vec3 c, vec3 d )
{
@cassieevans
cassieevans / gsap-starter-pen.markdown
Created November 24, 2019 12:58
GSAP Starter Pen