A PHP Error was encountered

Severity: Notice

Message: Undefined index: HTTP_ACCEPT_LANGUAGE

Filename: controllers/item.php

Line Number: 25

A PHP Error was encountered

Severity: Notice

Message: Undefined index: HTTP_ACCEPT_LANGUAGE

Filename: controllers/item.php

Line Number: 1114

EffectHub.com: your best source for gaming
Recommendation
More Effects...
JS
1
/* Forked from http://codepen.io/GabbeV/pen/HsImg */
2
window.requestAnimationFrame = window.requestAnimationFrame || window.mozRequestAnimationFrame || window.webkitRequestAnimationFrame || window.msRequestAnimationFrame
3
 
4
onload = function (){
5
  setTimeout(init,0)
6
}
7
 
8
init = function(){
9
  canvas = document.querySelector('canvas')
10
  ctx = canvas.getContext('2d')
11
 
12
  onresize = function(){
13
    canvas.width = canvas.clientWidth
14
    canvas.height = canvas.clientHeight
15
  }
16
  onresize()
17
 
18
  mouse = {x:canvas.width/2,y:canvas.height/2,out:false}
19
 
20
  canvas.onmouseout = function(){
21
    mouse.out = true
22
  }
23
 
24
  canvas.onmousemove = function(e){
25
    var rect = canvas.getBoundingClientRect()
26
    mouse = {
27
      x: e.clientX - rect.left,
28
      y: e.clientY - rect.top,
29
      out: false
30
    }
31
  }
32
 
33
  gravityStrength = 10
34
  particles = []
35
  spawnTimer = 0
36
  spawnInterval = 10
37
  type = 0
38
  time = performance.now()
39
  requestAnimationFrame(loop)
40
}
41
 
42
newParticle = function(){
43
  type = type?0:1
44
  particles.push({
45
    x:mouse.x,
 
CSS
1
body{
2
  margin: 0;
3
}
4
canvas{
5
  position: absolute;
6
  width: 100%;
7
  height: 100%;
8
  background: #111a22;
9
}
 
HTML
1
<canvas></canvas>
 

Join Effecthub.com

Working with Global Gaming Artists and Developers!


Or Sign Up with Your Email Address:
This field must contain a valid email
Password should be at least 1 character