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
var stats,
2
    particles = [];
3
 
4
Math.range = function(min, max) {
5
    if (!max) {
6
        max = min;
7
        min = 0;
8
    }
9
    return min + Math.random() * (max - min);
10
};
11
 
12
Math.chance = function(probability) {
13
    if (!probability) {
14
        probability = 0.5;
15
    }
16
    return Math.random() < probability;
17
};
18
 
19
function toRGB(hex) {
20
    var result = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hex);
21
    return result ? {
22
        r: parseInt(result[1], 16),
23
        g: parseInt(result[2], 16),
24
        b: parseInt(result[3], 16)
25
    } : null;
26
}
27
 
28
function Particle() {
29
    this.isActive = (Math.chance(0.5));
30
}
31
 
32
Particle.COLORS = ['#ff0000', '#daede6', '#a3d9cc', '#738076', '#734357', '#f5496b', '#e3b1be'];
33
 
34
Particle.prototype.init = function() {
35
    this.radius = 1;
36
    this.color = toRGB(Particle.COLORS[Math.round(Math.random() * (Particle.COLORS.length - 1))]);
37
    this.alpha = 1;
38
    this.fade = Math.range(0.005, 0.25);
39
    this.grow = (this.fade > 0.01) ? Math.range(0.25, 0.5) : Math.range(0.05, 0.4);
40
 
41
    if (!this.isActive) {
42
        this.x += Math.range(-10, 10);
43
        this.y += Math.range(-10, 10);
44
    }
45
};
46
 
 
CSS
1
* {
2
    margin: 0;
3
    padding: 0;
4
    -webkit-touch-callout: none;
5
    -webkit-user-select: none;
6
    -khtml-user-select: none;
7
    -moz-user-select: none;
8
    -ms-user-select: none;
9
    user-select: none;
10
}
11
html,
12
body {
13
    margin: 0;
14
    padding: 0;
15
    width: 100%;
16
    height: 100%;
17
    overflow: hidden;
18
    background: #ebe9e1;
19
    background: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(0%, #FFFFFF), color-stop(100%, #ebe9e1));
20
    background: -webkit-radial-gradient(center, ellipse cover, #FFFFFF 0%, #ebe9e1 100%);
21
    background: -moz-radial-gradient(center, ellipse cover, #FFFFFF 0%, #ebe9e1 100%);
22
    background: -ms-radial-gradient(center, ellipse cover, #FFFFFF 0%, #ebe9e1 100%);
23
    background: -o-radial-gradient(center, ellipse cover, #FFFFFF 0%, #ebe9e1 100%);
24
    background: radial-gradient(ellipse at center, #FFFFFF 0%, #ebe9e1 100%);
25
}
26
#stats {
27
    position: absolute;
28
    z-index: 10;
29
    left: 10px;
30
    top: 10px;
31
}
 
HTML
1
<script src="http://cdnjs.cloudflare.com/ajax/libs/sketch.js/1.0.0/sketch.min.js"></script>
2
<script src="http://cdnjs.cloudflare.com/ajax/libs/stats.js/r11/Stats.min.js"></script>
 

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