2D Generative Python: Arts and Maths with Primitive ModernGL

Learn Python with Fast Visual Simulations Using NumPy, CuPy and GPU Rendering

Welcome to Generative Python: Arts and Maths with ModernGL. This course is designed for curious minds who want to bridge the gap between programming, mathematics, and visual creativity using Python and GPU-accelerated graphics.

What you’ll learn

  • Write and understand fundamental Python code using variables, loops, lists, and functions..
  • Build visual and interactive programs using ModernGL and ModernGL-Window..
  • Apply basic numerical and graphical techniques using NumPy and CuPy (For GPU speeds!)..
  • Create structured Python projects from scratch using clean, readable code practices..

Course Content

  • Introduction –> 3 lectures • 2min.
  • Absolute Basics of Python –> 10 lectures • 33min.
  • NumPy and CuPy –> 3 lectures • 18min.
  • Object Oriented Programming –> 3 lectures • 17min.
  • Basic ModernGL –> 5 lectures • 21min.
  • ModernGL – Square Cell –> 5 lectures • 32min.
  • ModernGL – Circle –> 4 lectures • 29min.
  • ModernGL – Line –> 4 lectures • 24min.
  • Project 1: Sandpile Simulation –> 5 lectures • 28min.
  • Project 2: Orbital Patterns –> 4 lectures • 20min.
  • Finishing Steps –> 1 lecture • 3min.

2D Generative Python: Arts and Maths with Primitive ModernGL

Requirements

Welcome to Generative Python: Arts and Maths with ModernGL. This course is designed for curious minds who want to bridge the gap between programming, mathematics, and visual creativity using Python and GPU-accelerated graphics.

We’ll start from the absolute basics of Python—variables, loops, functions—and gradually move toward advanced topics like NumPy, object-oriented programming, and GPU rendering with ModernGL. Each section is filled with practical, project-driven exercises designed to help you learn by doing, not just watching.

You’ll build visually stunning and mathematically rich projects, such as sandpile simulations, Fourier drawing, and Perlin noise-generated continents—all while developing a solid understanding of shaders and real-time graphics.

This course is ideal for beginners with a basic grasp of Python or complete newcomers ready to explore coding through art and science. Whether you’re a student, a hobbyist, or a developer looking to expand your creative skill set, this course will provide the tools and knowledge to bring your ideas to life on the screen.

No prior experience with graphics programming is required. You’ll learn step-by-step, and by the end of the course, you’ll be able to create your own GPU-powered visual simulations with confidence. I hope you will enjoy your stay and learn some ModernGL along the way!

Get Tutorial