Scene gallery

All 137 scenes, grouped by category: 136 sub-projects, plus Hello, which lives in raylib-ios. Each name links to the scene's own sub-project, where its page has the description and the source. Build one to a phone with bb <name>, or all of them with bb gallery.

Generative (9)

Spirograph

A hypotrochoid that draws itself, then resets. Build it with bb spirograph.

Spirograph

Kaleidoscope

A stroke mirrored with six-fold symmetry. Build it with bb kaleidoscope.

Kaleidoscope

Fireworks

Rockets and fading particle bursts. Build it with bb fireworks.

Fireworks

Penrose

A Penrose P3 tiling made by deflation. Build it with bb penrose-tiling.

Penrose

Fourier Epicycles

Circles on circles that draw a square wave. Build it with bb fourier-epicycles.

Fourier Epicycles

Flow Field

Particles steered by a flow field. Build it with bb flow-field.

Flow Field

Lorenz

The Lorenz attractor, re-projected each frame. Build it with bb lorenz-attractor.

Lorenz

Life

Conway's Game of Life, reseeded when it stalls. Build it with bb game-of-life.

Life

Bullet Spiral

A three-armed bullet spiral. Build it with bb bullet-hell.

Bullet Spiral

Fractals (4)

Hilbert Curve

A Hilbert curve drawn progressively. Build it with bb hilbert-curve.

Hilbert Curve

Fractal Tree

A binary fractal tree that sways. Build it with bb recursive-tree.

Fractal Tree

L-system Plant

An L-system plant that grows and regrows. Build it with bb l-system.

L-system Plant

Automata

Elementary cellular automata, scrolling. Build it with bb cellular-automata.

Automata

Toys (113)

Following Eyes

Two eyes that track your finger. Build it with bb eyes.

Following Eyes

Touch Trail

A fading trail follows your finger. Build it with bb mouse-trail.

Touch Trail

Boids

A flock: separation, alignment, cohesion. Build it with bb boids.

Boids

Double Pendulum

A chaotic double pendulum with a trail. Build it with bb double-pendulum.

Double Pendulum

Starfield

A twinkling starfield. Build it with bb stars.

Starfield

Tesseract

A rotating 4D hypercube. Build it with bb tesseract-view.

Tesseract

Colour Wheel

An HSV colour wheel as an rlgl triangle fan. Build it with bb color-wheel.

Colour Wheel

Sine & Cosine

Sine and cosine as projections of a radius. Build it with bb math-sine-cosine.

Sine & Cosine

Clock

A seven-segment clock from libc time. Build it with bb digital-clock.

Clock

Pie Chart

A rotating pie chart. Build it with bb pie-chart.

Pie Chart

The raylib logo assembling itself. Build it with bb logo-anim.

raylib Logo

Easings

All fifteen easing curves on one clock. Build it with bb easings.

Easings

Angles

Fixed spokes and one that turns. Build it with bb math-angle-rotation.

Angles

Writing

A message that types itself out. Build it with bb writing-anim.

Writing

Ball Physics

Balls under gravity. Build it with bb ball-physics.

Ball Physics

Random Sequence

A shuffled sequence of bars. Build it with bb random-sequence.

Random Sequence

Collision Area

Two boxes and their overlap. Build it with bb collision-area.

Collision Area

Dashed Line

A dashed line to your finger. Build it with bb dashed-line.

Dashed Line

Multitouch

A circle and trail for every finger. Build it with bb input-multitouch.

Multitouch

Analog Clock

A live analog clock face. Build it with bb analog-clock.

Analog Clock

Clock of Clocks

The time spelled by a grid of tiny clocks. Build it with bb clock-of-clocks.

Clock of Clocks

Circle Sector

A pie slice that degrades to a triangle. Build it with bb circle-sector-drawing.

Circle Sector

Colours

Every colour raylib names, as a grid. Build it with bb colors.

Colours

Gradients

Colour interpolated across a rectangle. Build it with bb gradient.

Gradients

Ring Drawing

A breathing annulus with a stroked outline. Build it with bb ring-drawing.

Ring Drawing

Splines

Three spline bases over five points. Build it with bb splines.

Splines

Rounded Rect

A rectangle breathing from square to round. Build it with bb rounded-rectangle.

Rounded Rect

Vector Angle

The signed angle between two vectors. Build it with bb vector-angle.

Vector Angle

Rounded Bars

Per-side rounded bars with a gradient. Build it with bb rectangle-advanced.

Rounded Bars

Bezier

A cubic Bezier that follows your finger. Build it with bb lines-bezier.

Bezier

Line Widths

A turning fan of thick lines. Build it with bb lines-drawing.

Line Widths

Scissor

A moving scissor box clips a grid. Build it with bb scissor-test.

Scissor

Resize

Drag a corner handle to resize a rectangle. Build it with bb rectangle-scaling.

Resize

Text Alignment

A word aligned left, centre and right. Build it with bb words-alignment.

Text Alignment

Delta Time

Per-frame against delta-time movement. Build it with bb delta-time.

Delta Time

Random Values

A new random number every two seconds. Build it with bb random-values.

Random Values

Formatted Text

A padded score and an MM:SS timer. Build it with bb format-text.

Formatted Text

Triangle Strip

A rainbow triangle strip. Build it with bb triangle-strip.

Triangle Strip

Touch Ball

A ball that follows your finger. Build it with bb mouse.

Touch Ball

rlgl Triangle

A Gouraud triangle with draggable corners. Build it with bb rlgl-triangle.

rlgl Triangle

Particles

Water, smoke and fire from your fingertip. Build it with bb particles.

Particles

Bouncing Ball

A bouncing ball; tap to pause. Build it with bb bounce.

Virtual Controls

An on-screen D-pad and action button. Build it with bb input-virtual-controls.

Starfield Effect

Stars flying at you, dragged faster or slower. Build it with bb starfield-effect.

Easings Box

Drop, flatten, spin, grow and fade a square. Build it with bb easings-box.

Easings Testbed

One easing curve at a time, plotted. Build it with bb easings-testbed.

Rectangle Bounds

Word-wrapped text in a resizable box. Build it with bb rectangle-bounds.

rlgl Hue Wheel

A hue wheel with a colour on every vertex. Build it with bb rlgl-color-wheel.

The raylib logo, still. Build it with bb logo.

Font Sizes

Lines at several sizes and colours. Build it with bb text.

Inline Styling

Colours set inside the string itself. Build it with bb inline-styling.

Outline Thickness

Three outlines driven by one thickness. Build it with bb outlines-thickness.

Basic Shapes

A static tour of the basic shapes. Build it with bb shapes.

Ellipse Collision

Two ellipses that redden when they overlap. Build it with bb ellipse-collision.

Screen Manager

A LOGO, TITLE, GAMEPLAY, ENDING flow. Build it with bb basic-screen-manager.

Basic Window (in raylib-ios)

The basic window: one line of text. It is raylib-ios's own proof scene, so it has no sub-project here.

Basic Window

Keyboard Ball

A ball moved with a thumb-stick. Build it with bb input.

Keyboard Ball

Mouse Wheel

A box dragged up and down. Build it with bb wheel.

Mouse Wheel

Undo Redo

A square on a grid with bounded undo. Build it with bb undo-redo.

Undo Redo

Strings Management

Text particles you throw, cut and glue. Build it with bb strings-management.

Strings Management

2D Camera

A 2D camera following a player on a skyline. Build it with bb camera2d.

2D Camera Zoom

A 2D camera zooming about a pinned point. Build it with bb camera-2d-mouse-zoom.

2D Platformer

Five ways for a camera to follow a player. Build it with bb camera-2d-platformer.

2D Split Screen

Two players on one grid in split screen. Build it with bb camera-2d-split-screen.

Input Gestures

Raylib's gesture recogniser, named and logged. Build it with bb input-gestures.

Helitorus

A helix wound around a torus. Build it with bb helitorus.

Rotating Cube

A cube turning in place. Build it with bb rotating-cube.

3D Camera

An orbiting 3D camera. Build it with bb camera-3d.

Orthographic Projection

Perspective against orthographic projection. Build it with bb orthographic-projection.

Spinning Cubes

A row of cubes spinning with a phase offset. Build it with bb spinning-cubes.

World to Screen

A 2D label pinned above a 3D cube. Build it with bb world-screen.

Wireframe Shapes

Four wireframe solids tumbling. Build it with bb wireframe-shapes.

3D Free Camera

A free 3D camera on two thumbs. Build it with bb camera-3d-free.

Yaw Pitch Roll

A plane flown with three aircraft rotations. Build it with bb yaw-pitch-roll.

Box Collisions

A cube walked across a grid of boxes. Build it with bb box-collisions.

3D Picking

Tap a cube to pick it with a ray. Build it with bb picking-3d.

Waving Cubes

A grid of columns rippling like water. Build it with bb waving-cubes.

Solar System

A sun, Earth and Moon through nested transforms. Build it with bb rlgl-solar-system.

Point Cloud

A cloud of points turning slowly. Build it with bb point-cloud.

First-Person Camera

A first-person walk round a yard of columns. Build it with bb camera-3d-first-person.

First-Person Maze

A first-person maze with a minimap. Build it with bb first-person-maze.

3D Split Screen

Two players, two cameras, half a screen each. Build it with bb camera-3d-split-screen.

Bouncing Spheres

Six balls bouncing in a box. Build it with bb bouncing-spheres.

Bunnymark

The sprite-count benchmark. Build it with bb bunnymark.

Background Scrolling

Three parallax skyline layers. Build it with bb background-scrolling.

Sprite Stacking

Forty slices faking a 3D car. Build it with bb sprite-stacking.

Smooth Pixel-Perfect

A smooth pixel-perfect camera. Build it with bb smooth-pixelperfect.

Viewport Scaling

Six viewport scaling policies. Build it with bb viewport-scaling.

Window Letterbox

A fixed picture letterboxed to any shape. Build it with bb window-letterbox.

Fog of War

A tile map under a fog that lifts as you walk. Build it with bb fog-of-war.

Blend Modes

Blend modes over a night skyline. Build it with bb blend-modes.

Particles Blending

200 sparks, alpha against additive. Build it with bb particles-blending.

Billboard Rendering

Camera-facing billboards over a grid. Build it with bb billboard-rendering.

Directional Billboard

A walking billboard figure seen from all sides. Build it with bb directional-billboard.

Textured Cube

Two textured cubes under an orbiting camera. Build it with bb textured-cube.

Geometric Shapes

Cubes, a sphere, cylinders, a cone, a capsule. Build it with bb geometric-shapes.

Basic Voxel

A voxel block you walk round and hollow out. Build it with bb basic-voxel.

Doom-like Raycaster

A Doom-style ray caster on two thumbs. Build it with bb doom.

Texture Tiling

One tile repeated across the screen. Build it with bb texture-tiling.

Srcrec Dstrec

A source rectangle picks the frame, a dest scales. Build it with bb srcrec-dstrec.

Sprite Button

One sheet, three button states. Build it with bb sprite-button.

Npatch Drawing

Nine-patch stretching with fixed corners. Build it with bb npatch-drawing.

Polygon Drawing

A hue-wheel texture on a polygon. Build it with bb polygon-drawing.

Procedural Textures

Four procedural textures. Build it with bb texture-procedural.

Sprite Animation

Six poses cycled from one source rectangle. Build it with bb sprite-animation.

Textured Curve

A road texture laid along a Bezier curve. Build it with bb textured-curve.

Render Texture

A scene drawn off-screen, then reused. Build it with bb render-texture.

Framebuffer Rendering

Two cameras into two framebuffers. Build it with bb framebuffer-rendering.

Mouse Painting

A paint program on a render-target canvas. Build it with bb mouse-painting.

Magnifying Glass

A lens that magnifies what it covers. Build it with bb magnifying-glass.

Top Down Lights

Lights and shadow volumes from a top-down view. Build it with bb top-down-lights.

Raw Data

Textures built from a hand-filled byte buffer. Build it with bb raw-data.

Screen Buffer

The classic DOS fire effect. Build it with bb screen-buffer.

Games (11)

Flappy Bird

Tap to flap through the pipe gaps. Build it with bb flappy-bird.

Flappy Bird

Breakout

Paddle, ball and bricks. Build it with bb breakout.

Breakout

Snake

The classic snake, steered by swipes. Build it with bb snake.

2048

2048, played by swipe. Build it with bb game-2048.

Minesweeper

Tap to reveal, long press to flag. Build it with bb minesweeper.

Pong

Pong against a CPU, paddle on a finger. Build it with bb pong.

Space Invaders

Marching aliens and a one-finger ship. Build it with bb space-invaders.

Tetris

The block-stacking puzzle by drag and tap. Build it with bb tetris.

Asteroids

The vector shooter on four buttons. Build it with bb asteroids.

Vampire Survivors

Auto-fire survival with a thumb-stick. Build it with bb vampire-survivors.

Vampire Survivors

Pac-Man

Pac-Man, steered by swipes. Build it with bb pacman.

Pac-Man