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
/*
2
Copyright (c) 2014 lonely-pixel.com
3
 
4
Permission is hereby granted, free of charge, to any person obtaining
5
a copy of this software and associated documentation files (the "Software"),
6
to deal in the Software without restriction, including without limitation
7
the rights to use, copy, modify, merge, publish, distribute, sublicense,
8
and/or sell copies of the Software, and to permit persons to whom the
9
Software is furnished to do so, subject to the following conditions:
10
 
11
The above copyright notice and this permission notice shall be included
12
in all copies or substantial portions of the Software.
13
 
14
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
15
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
19
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
20
IN THE SOFTWARE.
21
*/
22
 
23
window.requestAnimFrame =
24
    window.requestAnimationFrame ||
25
    window.webkitRequestAnimationFrame ||
26
    window.mozRequestAnimationFrame ||
27
    window.oRequestAnimationFrame ||
28
    window.msRequestAnimationFrame ||
29
    function(callback) {
30
        window.setTimeout(callback, 1000 / 60);
31
};
32
 
33
var canvas = document.getElementById('c');
34
var ctx = canvas.getContext('2d');
35
 
36
canvas.width = window.innerWidth;
37
canvas.height = window.innerHeight;
38
 
39
var settings = {
40
 
41
    'abstract': {
42
 
43
        'emission_rate': 500,
44
        'min_life': 1,
45
        'life_range': 1,
46
        'min_angle': 0,
 
CSS
1
* {
2
    padding: 0;
3
    margin: 0;
4
    overflow:hidden;
5
}
6
 
7
div {
8
  position:absolute;
9
  left: 10px;
10
  top: 10px;
11
}
12
 
13
button {
14
  padding: 4px 6px;
15
  background: rgba(0,0,0,0.3);
16
  border: none;
17
  color: #fff;
18
  font-size: 18px;
19
  cursor: pointer;
20
}
 
HTML
1
<!--
2
 
3
Part 2 of my particle engine tutorial.
4
 
5
Read it here:
6
http://lonely-pixel.com/blog/making-a-particle-engine-using-javascript-part-2
7
 
8
-->
9
<canvas id="c"></canvas>
10
 
11
<div>
12
  <button onclick="abstract()">abstract</button>
13
  <button onclick="rain()">rain</button>
14
  <button onclick="blood()">blood</button>
15
  <button onclick="fire()">fire</button>
16
</div>
 

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