Skip to content

Instantly share code, notes, and snippets.

View ansonphong's full-sized avatar
💭
⚡👁️🐸👁️ ⚡

phong ansonphong

💭
⚡👁️🐸👁️ ⚡
View GitHub Profile
I am attesting that this GitHub handle visionagency is linked to the Tezos account tz1eMqmRtGPtEmCk2tDmk5fbruyTn6w6kbCL for tzprofiles
sig:edsigtckZGLgCqWD7A8mmwSECxmv8h415UMh5tt3E4FTaXAkK1q5kRTrtQCshj6Qwo9gUX9yfyCF1WCREcJhGMHumJvjktJvDjV
@ansonphong
ansonphong / PolarCoords-LotusPattern
Created June 24, 2018 11:53
Lotus Pattern in Polar Coordinates
///// LOTUS /////
// This is a basic equasion for rendering lotus patterns with polar coordinates
float lb = 2; // Base Radius
float lp = 6; // Petals
float lm = 1; // Multiplier
float lo = 10; // In/Out Curve Ratio
float lc = 8; // Curvature
float lg = 9; // Inward Gravity
float lr = pi; // Rotation
float Lotus = lb+lm*(((abs(cos(theta*(lp/2)+lr/2))*lo)-(abs(cos(theta*(lp/2)+pi/2+lr/2)))*lg)/(2+abs(cos(theta*(lp/2)*2+pi/2+lr))*lc));