Examples

Graphics (Basic)

Animation

Animation

Animation by changing the source region of an image by SubImage.

Blur

Blur

Bluring an image by rending the same image multiple times.

Filter

Filter

Demonstrating the difference between nearest filter and linear filter.

Flood Fill

Flood Fill

Filling images with solid colors by a composition mode.

Font

Font

Rendering glyphs of a TrueType font by text.Draw.

HSV

HSV

Changing hue-saturation-value by specifying a color matrix.

Infinite Scroll

Infinite Scroll

Infinite scroll by changing the rendering position frame by frame.

Game of Life

Game of Life

Plotting Conway's game of life by ReplacePixels.

Mandelbrot

Mandelbrot

Plotting a Mandelbrot set by ReplacePixels and complex numbers.

Mosaic

Mosaic

Mosaic effect by shrink an image once and enlarge it with nearest filter.

Noise

Noise

Rending noise by ReplacePixels.

Particles

Particles

Rendering bunch of images with geometry/color matrices.

Polygons

Polygons

Rendering polygons by DrawTriangles.

Sprites

Sprites

Rendering many images very fast by automatic batches.

Tiles

Rednering tiles with DrawImage specifying sub-images.

Graphics (Advanced)

Airship

Airship

Airship effect like Final Fantasy 6 with pseudo raster scrolling.

Drag & Drop

Drag & Drop

Drag & drop by handling input.

Hi-DPI

Hi-DPI

Hi-DPI rending by specifing a special scale.

Masking

Masking

Masking by DrawImage and a composition mode.

Paint

Paint

Drawing tool using an offscreen image as a canvas.

Perspective

Perspective

Pseudo raster scrolling by rendering thin parts of an image.

Ray Casting

Ray Casting

Renderng ray casting regions.

Input

Gamepad

Gamepad

Gamepad states like pressed buttons and axes values.

Keyboard

Keyboard

Keyboard key states.

Typewriter

Typewriter

Typewriter-like application by InputChars.

Mouse Wheel

Mouse Wheel

Detecting mouse wheel by Wheel.

Audio

Audio

Audio

An audio player that plays music with a seek bar.

Piano

Piano

A very simple piano that plays PCM notes.

Sine Wave

Sine Wave

An infinite sine wave.

Games

2048

2048

Blocks

Blocks

Flappy

Flappy