Uploaded June 2026 | Updated November 2026, 2 days ago
LET'S CONNECT
β¨ Sign up for my newsletter at pattvira.com
β¨ Instagram: instagram.com/pattvira
β¨ Twitter: twitter.com/pattvira
--
β Watch the entire Shaders Series here: youtube.com/playlist?list=PL0beHPVMklwhYSt_ZNC2HzJKo7qO1-xQJ
Links:
π p5.js editor: editor.p5js.org
π Shaders Series Ep.2 Code: editor.p5js.org/pattvira/sketches/fdykpy1OD
References:
π @kishimisu 's An introduction to Shader Art Coding: youtu.be/f4s1h2YETNY?si=mLl6AnplB1v1ri5Z
π @kishimisu 's Shadertoy example: shadertoy.com/view/mtyGWy
π p5.js ellipse: p5js.org/reference/p5/ellipse
π p5.js pixelDensity: p5js.org/reference/p5/pixelDensity
Timestamps:
0:00 Intro
1:58 Draw a circle
5:35 Use gl_FragCoord to get pixel coordinates
12:00 Create tiling with function fract()
15:18 Fix aspect ratio
17:12 Introduce the standard resolution fix
LET'S CONNECT
β¨ Sign up for my newsletter at pattvira.com
β¨ Instagram: instagram.com/pattvira
β¨ Twitter: twitter.com/pattvira
--
β Watch the entire Shaders Series here: youtube.com/playlist?list=PL0beHPVMklwhYSt_ZNC2HzJKo7qO1-xQJ
Links:
π p5.js editor: editor.p5js.org
π Shaders Series Ep.2 Code: editor.p5js.org/pattvira/sketches/fdykpy1OD
References:
π @kishimisu 's An introduction to Shader Art Coding: youtu.be/f4s1h2YETNY?si=mLl6AnplB1v1ri5Z
π @kishimisu 's Shadertoy example: shadertoy.com/view/mtyGWy
π p5.js ellipse: p5js.org/reference/p5/ellipse
π p5.js pixelDensity: p5js.org/reference/p5/pixelDensity
Timestamps:
0:00 Intro
1:58 Draw a circle
5:35 Use gl_FragCoord to get pixel coordinates
12:00 Create tiling with function fract()
15:18 Fix aspect ratio
17:12 Introduce the standard resolution fix










