SimpleCanvasLibrary Demos

Interactive examples showcasing the features of SimpleCanvasLibrary

Each demo shows the exact source code that's running

Drawing and Simple Animation

Drawing examples using GameCanvas

Simple Drawing Example

Shows how to create a drawing using the GameCanvas class.

View Demo

Simple Animation Using Elapsed Time

Shows how to update a drawing over time using total elapsed time.

View Demo

Simple Moving Drawing (Step Time)

Shows how to animate drawings using step time for consistent frame-based movement.

View Demo

Gravity Simulation with UI Controls

Interactive gravity simulation with UI controls for adjusting parameters.

View Demo

Events and Interaction

Handling user input and interaction

Simple Click Handler

Shows how to handle click events with GameCanvas.

View Demo

Simple Mouse Move Handler

Shows how to handle mouse movement events with GameCanvas.

View Demo

Resize Handling

Demonstrates automatic canvas resizing, resize event handling, and responsive drawing that adapts to canvas size.

View Demo

Advanced Cat Sprite (Mouse Following)

Interactive cat sprite that follows your mouse cursor with walking animation from a real spritesheet.

View Demo

GameInterface UI

Creating user interfaces with GameInterface

GameInterface with Buttons

Shows how to create interactive buttons using the GameInterface class.

View Demo

GameInterface Complete Example

Comprehensive demo showing all GameInterface features: buttons, sliders, and number inputs.

View Demo

Animation and Sprites

Animating graphics and using sprites

Basic Animation Example

Demonstrates simple animation with moving shapes using GameCanvas.

View Demo

Advanced Cat Sprite (Mouse Following)

Interactive cat sprite that follows your mouse cursor with walking animation from a real spritesheet.

View Demo

Browse by Tag

Find demos by their specific features and topics

#advanced

Advanced techniques and patterns

Advanced Cat Sprite (Mouse Following)

Interactive cat sprite that follows your mouse cursor with walking animation from a real spritesheet.

View Demo

Fancy Click Handler

Advanced click handling with visual feedback and color changes.

View Demo

#analysis

Analysis and inspection utilities

Cat Spritesheet Inspector

Shows the raw spritesheet to help determine frame dimensions and layout.

View Demo

#animation

Animation and movement examples

Add and Remove Shapes

Interactive demo showing how to dynamically add and remove shapes using GameInterface buttons.

View Demo

Advanced Cat Sprite (Mouse Following)

Interactive cat sprite that follows your mouse cursor with walking animation from a real spritesheet.

View Demo

Basic Animation Example

Demonstrates simple animation with moving shapes using GameCanvas.

View Demo

Gravity Simulation with UI Controls

Interactive gravity simulation with UI controls for adjusting parameters.

View Demo

Simple Cat Sprite (Static Position)

Basic sprite animation example using a cat spritesheet with stationary display.

View Demo

Simple Animation Using Elapsed Time

Shows how to update a drawing over time using total elapsed time.

View Demo

Simple Moving Drawing (Step Time)

Shows how to animate drawings using step time for consistent frame-based movement.

View Demo

#basics

Fundamental concepts and getting started

Basic Animation Example

Demonstrates simple animation with moving shapes using GameCanvas.

View Demo

Simple Cat Sprite (Static Position)

Basic sprite animation example using a cat spritesheet with stationary display.

View Demo

Simple Click Handler

Shows how to handle click events with GameCanvas.

View Demo

Simple Drawing Example

Shows how to create a drawing using the GameCanvas class.

View Demo

#buttons

Interactive button components

Add and Remove Shapes

Interactive demo showing how to dynamically add and remove shapes using GameInterface buttons.

View Demo

GameInterface Complete Example

Comprehensive demo showing all GameInterface features: buttons, sliders, and number inputs.

View Demo

GameInterface with Buttons

Shows how to create interactive buttons using the GameInterface class.

View Demo

#click

Click event handling

Fancy Click Handler

Advanced click handling with visual feedback and color changes.

View Demo

Simple Click Handler

Shows how to handle click events with GameCanvas.

View Demo

#debugging

Development and debugging tools

Cat Spritesheet Inspector

Shows the raw spritesheet to help determine frame dimensions and layout.

View Demo

#dialog

Dialog boxes and modals

GameInterface with Dialog

Shows how to create a dialog box using the GameInterface class.

View Demo

#drawing

Canvas drawing techniques

Simple Drawing Example

Shows how to create a drawing using the GameCanvas class.

View Demo

Simple Animation Using Elapsed Time

Shows how to update a drawing over time using total elapsed time.

View Demo

Simple Moving Drawing (Step Time)

Shows how to animate drawings using step time for consistent frame-based movement.

View Demo

#events

Event handling (clicks, mouse movement, etc.)

Fancy Click Handler

Advanced click handling with visual feedback and color changes.

View Demo

Simple Click Handler

Shows how to handle click events with GameCanvas.

View Demo

Simple Mouse Move Handler

Shows how to handle mouse movement events with GameCanvas.

View Demo

#game-interface

GameInterface class with UI controls

Add and Remove Shapes

Interactive demo showing how to dynamically add and remove shapes using GameInterface buttons.

View Demo

GameInterface Complete Example

Comprehensive demo showing all GameInterface features: buttons, sliders, and number inputs.

View Demo

GameInterface with Buttons

Shows how to create interactive buttons using the GameInterface class.

View Demo

GameInterface with Dialog

Shows how to create a dialog box using the GameInterface class.

View Demo

Gravity Simulation with UI Controls

Interactive gravity simulation with UI controls for adjusting parameters.

View Demo

#getting-started

Perfect for beginners learning the library

Basic Animation Example

Demonstrates simple animation with moving shapes using GameCanvas.

View Demo

Simple Drawing Example

Shows how to create a drawing using the GameCanvas class.

View Demo

#inputs

Number and text input fields

GameInterface Complete Example

Comprehensive demo showing all GameInterface features: buttons, sliders, and number inputs.

View Demo

#interactive

User interaction and input handling

Add and Remove Shapes

Interactive demo showing how to dynamically add and remove shapes using GameInterface buttons.

View Demo

Advanced Cat Sprite (Mouse Following)

Interactive cat sprite that follows your mouse cursor with walking animation from a real spritesheet.

View Demo

Fancy Click Handler

Advanced click handling with visual feedback and color changes.

View Demo

GameInterface Complete Example

Comprehensive demo showing all GameInterface features: buttons, sliders, and number inputs.

View Demo

GameInterface with Buttons

Shows how to create interactive buttons using the GameInterface class.

View Demo

GameInterface with Dialog

Shows how to create a dialog box using the GameInterface class.

View Demo

Gravity Simulation with UI Controls

Interactive gravity simulation with UI controls for adjusting parameters.

View Demo

Simple Click Handler

Shows how to handle click events with GameCanvas.

View Demo

Simple Mouse Move Handler

Shows how to handle mouse movement events with GameCanvas.

View Demo

#mouse

Mouse tracking and interaction

Simple Mouse Move Handler

Shows how to handle mouse movement events with GameCanvas.

View Demo

#mouse-following

Interactive mouse tracking

Advanced Cat Sprite (Mouse Following)

Interactive cat sprite that follows your mouse cursor with walking animation from a real spritesheet.

View Demo

#orientation

Screen orientation handling

Resize Handling

Demonstrates automatic canvas resizing, resize event handling, and responsive drawing that adapts to canvas size.

View Demo

#physics

Physics simulations and effects

Gravity Simulation with UI Controls

Interactive gravity simulation with UI controls for adjusting parameters.

View Demo

#resize

Canvas resizing and responsive design

Resize Handling

Demonstrates automatic canvas resizing, resize event handling, and responsive drawing that adapts to canvas size.

View Demo

#responsive

Responsive canvas behavior

Resize Handling

Demonstrates automatic canvas resizing, resize event handling, and responsive drawing that adapts to canvas size.

View Demo

#shapes

Dynamic shape creation and manipulation

Add and Remove Shapes

Interactive demo showing how to dynamically add and remove shapes using GameInterface buttons.

View Demo

#sliders

Slider input controls

GameInterface Complete Example

Comprehensive demo showing all GameInterface features: buttons, sliders, and number inputs.

View Demo

#sprites

Working with sprite graphics

Advanced Cat Sprite (Mouse Following)

Interactive cat sprite that follows your mouse cursor with walking animation from a real spritesheet.

View Demo

Simple Cat Sprite (Static Position)

Basic sprite animation example using a cat spritesheet with stationary display.

View Demo

Cat Spritesheet Inspector

Shows the raw spritesheet to help determine frame dimensions and layout.

View Demo

#spritesheet

Using sprite sheets for animation

Advanced Cat Sprite (Mouse Following)

Interactive cat sprite that follows your mouse cursor with walking animation from a real spritesheet.

View Demo

Simple Cat Sprite (Static Position)

Basic sprite animation example using a cat spritesheet with stationary display.

View Demo

Cat Spritesheet Inspector

Shows the raw spritesheet to help determine frame dimensions and layout.

View Demo

#timing

Time-based animation (elapsed time, step time)

Simple Animation Using Elapsed Time

Shows how to update a drawing over time using total elapsed time.

View Demo

Simple Moving Drawing (Step Time)

Shows how to animate drawings using step time for consistent frame-based movement.

View Demo