Skip to content

Fireworks Graphics Demo (Swift, Metal, macOS)

Notifications You must be signed in to change notification settings

luoyuant/fireworks

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Fireworks Metal Demo

Overview

This is a graphics demo that shows animated fireworks. I wrote it for two reasons: to see what Swift can do, and for something new and fun (I never do 3D graphics in my day job).

This uses the "Metal" low-level 3D graphics API.

Latest Binary Release

Get a .dmg from the release page

Note
Mac OSX 10.11+ is required, due to Metal

Features

  • 60 FPS (2015 Mac Book)

  • Silky smooth "global time" rendering; no step-based ticks with floating point errors. This also lets you pause and rewind time.

  • Calculates gravity and air drag

  • Uses alpha blending

  • Two kinds of fireworks: twinkle out and plume trail

Keys

Press space to pause time. Press j and k to step time forward and backward by 1/60th of a second.

Screen Shot

screen

(c) 2015 Karl Pickett

About

Fireworks Graphics Demo (Swift, Metal, macOS)

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Swift 96.3%
  • Metal 2.9%
  • Makefile 0.8%