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 c = document.querySelector('.c') /* the canvas element */, 
2
    
3
    ctx = c.getContext('2d') /* canvas context */, 
4
    w /* canvas height */, h /* canvas height */, 
5
    
6
    t = 0, 
7
        
8
    max = Math.max, 
9
    pow = Math.pow, sqrt = Math.sqrt, 
10
    PI = Math.PI, 
11
    sin = Math.sin, cos = Math.cos /* just me being lazy */;
12
 
13
/* FUNCTIONS */
14
var trimUnit = function(input_str, unit) {
15
  return parseInt(input_str.split(unit)[0], 10);
16
};
17
 
18
var spiral = function() {
19
  var n = 8 /* shades */, 
20
      m = 4 /* shade repetitions */, 
21
      p = 32 /* dots on each branch */, 
22
      r = 1 /* dot radius */, 
23
      a, b, 
24
      beta, gamma, 
25
      x0, y0, x1, y1, 
26
      hue, grad, 
27
      t_step = 1/60;
28
  
29
  ctx.clearRect(0, 0, w, h);
30
    
31
  for(var i = 0; i < n*m; i++) {
32
    beta = i*2*PI/(n*m);
33
    x0 = 0;
34
    
35
    /* Begin the path up here */
36
    ctx.beginPath();
37
    hue = i*360/n;      
38
    /* only need to set the fillstyle once up here now */
39
    ctx.fillStyle = 'hsl(' + hue + ', 100%, 65%)';
40
        
41
    for(var j = 0; j < p; j++) {      
42
      gamma = j*2*PI/p;
43
      r = max(1, pow((j*(p - j)), .4) - 5);
44
      
45
      x0 += 3.4*r;
46
      y0 = x0*sin(gamma + 2*t)/5;
 
CSS
1
* { overflow: hidden; margin: 0; width: 100%; height: 100%; }
2
.c { background: black; }
 
HTML
1
<canvas class='c'>psychedelic rainbow spiral</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