Introduction to Shaders: Domain Repetition (2/4) @pattvira
Introduction to Shaders: Domain Repetition (2/4)  @pattvira
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
Introduction to Shaders: Domain Repetition (2/4)p5.js Coding Tutorial | Clockp5.js Coding Tutorial |  Color Grid (Nested Loop / 2D Array)p5.js Coding Tutorial | ASCII Text Images and Videos!Array - Creative Coding with p5.jsp5.js Coding Tutorial | Mouse-following Dials (Object-oriented Programming)p5.js Coding Tutorial | How to Save Animation as a GIF (saveGif Function)p5.js Coding Tutorial | Bloom Kinetic ClockArduino 101 | Episode 2: Read and Write Digital & Analog Signalsp5.js Coding Tutorial | DESSINS GΓ©omΓ©triquesp5.js Coding Tutorial |  Multiple Circles w For Loopp5.js Coding Tutorial | Paper Shredding Effect
Patt Vira |

Introduction to Shaders: Domain Repetition (2/4)

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER