# moderngl Examples

Hello world :tada:

[![](preview_images/hello_world.png)](01_a_hello_world.py)

Simple color triangle

[![](preview_images/color_triangle.png)](01_b_simple_color_triangle.py)

Uniforms and attributes

[![](preview_images/uniforms_and_attributes.png)](02_uniforms_and_attributes.py)

Alpha blending

[![](preview_images/alpha_blending.png)](03_alpha_blending.py)

Colors and texture

[![](preview_images/colors_and_texture.png)](04_colors_and_texture.py)

Prespective projection

[![](preview_images/perspective_projection.png)](05_perspective_projection.py)

Index buffer

[![](preview_images/index_buffer.png)](06_index_buffer.py)

Multiple instance rendering

[![](preview_images/multiple_instance_rendering.png)](07_multiple_instance_rendering.py)

## Dependencies

```
pip install -r requirements.txt
```

## Work in progress...

# moderngl Examples

Hello world :tada:

[![](preview_images/hello_world.png)](01_a_hello_world.py)

Simple color triangle

[![](preview_images/color_triangle.png)](01_b_simple_color_triangle.py)

Uniforms and attributes

[![](preview_images/uniforms_and_attributes.png)](02_uniforms_and_attributes.py)

Alpha blending

[![](preview_images/alpha_blending.png)](03_alpha_blending.py)

Colors and texture

[![](preview_images/colors_and_texture.png)](04_colors_and_texture.py)

Prespective projection

[![](preview_images/perspective_projection.png)](05_perspective_projection.py)

Index buffer

[![](preview_images/index_buffer.png)](06_index_buffer.py)

Multiple instance rendering

[![](preview_images/multiple_instance_rendering.png)](07_multiple_instance_rendering.py)

## Dependencies

```
pip install -r requirements.txt
```

## Old examples

Also see the [old examples](old-examples).


Add a link from examples to old-examples.
Add a link from examples to old-examples.
