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
// An experiment, lots of values altered explicitly for codepen.
2
// Needs more work as is quite slow on mobile devices but the theory is there.
3
 
4
// V1.2 - fix to clock, needed a quick math fix. now displays the right time
5
// Forked from http://codepen.io/superchief/pen/LAuGr
6
window.onload = function() {
7
  var canvas = document.getElementById("android");
8
    var ctx = canvas.getContext("2d");
9
    var globalTimer = 0; // rotation timer;
10
    var canvasState = "rendering";
11
    var rotation = 0.0;
12
    var doFader = true;
13
 
14
    var windowHeight = window.innerHeight;
15
    var windowWidth = window.innerWidth;
16
    var DisplayType = { SQUARE: 0, CIRCLE: 1 }
17
    // Pixel spacing on the left and right so every element has an extra
18
    // pixelspacing * 2
19
    var pixelSpacing = 1;
20
    var itemWidth = 6;
21
    var totalItemColumns = 20;
22
    var totalItemsHeight = 20;
23
    var itemRandom = 1;
24
    var fader = 255;
25
    var fader2 = 10;
26
    var faderDirection = 0; // 0 = down, 1 = up;
27
    var faderDirection2 = 0; // 0 = down, 1 = up;
28
    var itemArray = [[]]; // this is a multidimensional array to hold rows and columns
29
  
30
  canvas.width = windowWidth;
31
    canvas.height = windowHeight;
32
    // Work out columns
33
    // this needs to be for example in the case of 1280 : 1280 / 12 = 
34
    
35
    totalItemColumns = Math.ceil(windowWidth / (itemWidth * 2));
36
    if (windowHeight % 2 > 0) {
37
        totalItemsHeight = Math.ceil((windowHeight + 1) / (itemWidth * 2));
38
    } else {
39
        totalItemsHeight = Math.ceil(windowHeight / (itemWidth * 2));
40
    }
41
 
42
    for (var i = 0; i < totalItemsHeight; i++) {
43
        if (i > 0)
44
        {
45
            itemArray.push(new Array());
46
        }
 
CSS
1
* {
2
    margin: 0;
3
    padding: 0;
4
}
5
 
6
#android {
7
    display: block;
8
    cursor: none;
9
}
 
HTML
1
<canvas id="android"></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