• Stars
    star
    107
  • Rank 323,587 (Top 7 %)
  • Language
    HTML
  • Created over 8 years ago
  • Updated over 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Animated and tweakable starfield for HTML5 Canvas

WarpSpeed.js

WarpSpeed.js is a simple and lightweight library for drawing an animated and customizable starfield to an HTML5 Canvas element, with a good amout of settings that you can tweak. Settings can also be tweaked at run time.

See it in action

Play with the configurator

Compatibility

As far as I know, it works on browsers as old as IE9. Any browser that supports the Canvas element should be supported. Remember to include a fallback if you're planning to support older browsers too.

Basic usage

  1. Include warpspeed.min.js into your page.
  2. call new WarpSpeed('your canvas id here')

To tweak the settings, you can use editor.html, and copy the string at the bottom, then in your page you can call new WarpSpeed('<your canvas id here>','<string from editor>')

Usage with React

  1. Copy warpspeed.js in react-integration folder, and paste it in your React file.
  2. Add 'import WarpSpeed from "./warpspeed.js"' at the top of your React file.
  3. Add 'const x = new WarpSpeed('your canvas id here')' in your componentDidMount() function.

Files

  • warpspeed.js Source code
  • warpspeed.min.js Compressed version to include in your pages. USE THIS ONE!
  • editor.html Visual settings editor
  • example[1-3].html Various usage examples

Screenshots

Screenshot Screenshot Screenshot Screenshot Screenshot

License

Copyright (C) 2016-2021 Federico Dossena

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this program. If not, see https://www.gnu.org/licenses/lgpl.

More Repositories

1

Windows10-Privacy

Windows 10 Privacy Guide
1,405
star
2

OpenPods

The Free and Open Source app for monitoring your AirPods on Android
Java
944
star
3

wined3d4win

WineD3D For Windows Build Scripts
Shell
191
star
4

WaifUPnP

UPnP Port Forwarding for Java couldn't get any easier!
Java
96
star
5

NoteBot

A ripoff of Microsoft Sticky Notes
Java
87
star
6

chromiumUpdater

Downloads Chromium for Android and keeps it updated
Java
72
star
7

voicechat

A Simple VoIP application that supports UPnP, conversations with multiple users, and basic compression
Java
43
star
8

DozeOff

Disable Doze on your rooted Android device
Java
38
star
9

sine

Free and Open Source Brainwave Entrainment Application
Java
28
star
10

ChadQuake

Fork of Mark V WinQuake
C
26
star
11

Clock31

Clock + Calendar combo widget for Android
Java
22
star
12

tetrispuzzlesolver

Solves sigil puzzles found in The Talos Principle and Sigils of Elohim.
Java
21
star
13

tetrispuzzlesolver-html5

Solves sigil puzzles found in The Talos Principle and Sigils of Elohim
JavaScript
18
star
14

NanoFanController

Arduino Nano based PC PWM fan controller. Up to 3 fans.
C++
18
star
15

sine-android

Free and Open Source Brainwave Entrainment Application for Android
Java
17
star
16

muhtriangles-android

Muh Triangles Live Wallpaper for Android
Java
17
star
17

sine-html5

Free and Open Source Brainwave Entrainment Application (Used to make the SINE Webapp)
JavaScript
12
star
18

muhtriangles.js

A simple and lightweight library for drawing colorful and animated triangles to an HTML5 Canvas element, with a good amout of settings that you can tweak.
HTML
12
star
19

TDF

Linux Gaming without Steam. Install, configure, run and distribute games inside sandboxed Wine environments
Shell
11
star
20

ME2KasumiCrashFix

Fix for the crash in Mass Effect 2 at the end of Kasumi's loyalty mission
C++
10
star
21

hbx

Free and Open Source Binaural Beats Application
Java
10
star
22

adolfintel.com

Blog and Hosting for my Projects
JavaScript
10
star
23

TinyTinyWordle

Wordle clone for Arduino
C
10
star
24

ocd

Image quality devastator. Repeatedly compresses an image using lossy JPEG compression.
HTML
7
star
25

sine-web

SINE Website and Webapp
PHP
6
star
26

missionx

A 2D Side Scrolling Arcade Space Shooter
Java
5
star
27

libbwentrainment

Free and Open Source Brainwave Entrainment Library for Java (PC and Android)
Java
5
star
28

corruptor

A simple multithread databending tool. Can be used to create glitch art, or just to simulate an unreliable communication.
Java
5
star
29

hbx-android

Free and Open Source Binaural Beats Application for Android
Java
5
star
30

gravity2d

Multithread N-Point Gravity Simulator for Java (PC Version)
Java
5
star
31

libbinaural

Free and Open Source library for generating Binaural Beats in Java
Java
4
star
32

espac

WiFi enabled Daikin ARC433 remote, with scripting support
C++
4
star
33

teamboard

A networking Paint application
Java
4
star
34

gravity2d-android

Multithread N-Point Gravity Simulator for Java (Android version)
Java
4
star
35

cv

Repository for my CV/ResumΓ©
TeX
3
star
36

AlienAurora

A relaxing and mesmerizing animation for JS
HTML
3
star
37

WarhammerMOCPerformanceFix

A patch that improves loading times and performance in the 2006 strategy game Warhammer Mark of Chaos and makes it playable in Wine
C++
3
star
38

hanoi-html5

Towers of Hanoi Javascript solver
HTML
3
star
39

SetGamma

Set/Reset screen gamma on Windows. Useful when old games mess up the brightness.
C
1
star
40

Tesi2

Repository per la mia tesi magistrale
TeX
1
star