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 canvas = document.getElementById("concentric_circles");
2
var ctx = canvas.getContext("2d");
3
 
4
 
5
var canvasWidth = canvas.width;
6
var canvasHeight = canvas.height;
7
 
8
var circles = new Array();
9
 
10
function Circle(angle, radius, rRadius, iX, iY) {
11
    this.angle = angle;
12
    this.radius = radius;
13
    this.rRadius = rRadius;
14
    this.iX = iX;
15
    this.iY = iY;
16
    this.inc = 1;
17
}
18
 
19
Circle.prototype.add = function () {
20
    this.angle += this.inc;
21
    this.cX = this.iX + this.rRadius * Math.cos(this.angle);
22
    this.cY = this.iY + this.rRadius * Math.sin(this.angle);
23
     
24
    if (this.angle >= (Math.PI * 2)) {
25
        this.angle = 0;
26
        this.inc = .01 + Math.random() * .1;
27
    }
28
 
29
    
30
var rColor = 'rgba(' + (Math.floor(Math.random() * 256)) + ',' + (Math.floor(Math.random() * 256)) + ',' + (Math.floor(Math.random() * 256)) + ', .3)';
31
 
32
ctx.beginPath();
33
ctx.arc(this.cX, this.cY, this.radius, 0, Math.PI * 2);
34
    ctx.closePath();
35
    
36
ctx.fillStyle = rColor;
37
    ctx.fill();
38
ctx.strokeStyle = rColor;
39
    ctx.stroke();
40
 
41
};
42
 
43
 
44
function drawCC() {
45
 
46
    for (var i = 0; i < 30 ; i++) {
 
CSS
1
* {  width:  100%;
2
  height: 100%;
3
  margin: 0px;
4
background:black;}
5
 
6
canvas {
7
  width:100%;
8
  display:block;
9
  margin:auto;
10
}
11
 
 
HTML
1
<canvas id="concentric_circles" width="500" height="500"></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