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 width, height
2
var step = 0;
3
var canvas = document.createElement('canvas')
4
var canvas2 = document.createElement('canvas')
5
var canvas3 = document.createElement('canvas')
6
var ctx = canvas.getContext('2d')
7
var ctx2 = canvas2.getContext('2d')
8
var ctx3 = canvas3.getContext('2d')
9
var bg = [13, 27, 34]
10
 
11
 
12
 
13
// document.getElementsByTagName('body')[0].appendChild(canvas)
14
// document.getElementsByTagName('body')[0].appendChild(canvas2)
15
document.getElementsByTagName('body')[0].appendChild(canvas3)
16
 
17
// mouse coordinates
18
// var mousex = window.innerWidth / 2, mousey = window.innerHeight;
19
// document.onmousedown = function(e){
20
//   // pt = pt === pt1 ? pt2 : pt1
21
//   pt1.x = e.pageX;
22
//   pt1.y = e.pageY;
23
// }
24
document.onmousemove = function(e){
25
  pt2.x = e.pageX;
26
  pt2.y = e.pageY;
27
}
28
var pt1 = {x:window.innerWidth*0.5, y:window.innerHeight*0.1}
29
var pt2 = {x:window.innerWidth*0.5, y:window.innerHeight*0.8}
30
    
31
window.addEventListener('resize', setup)
32
 
33
setup()
34
 
35
function setup() {
36
  canvas3.width = canvas2.width = canvas.width = width = window.innerWidth
37
  canvas3.height = canvas2.height = canvas.height = height = window.innerHeight
38
  
39
  ctx.beginPath();
40
  ctx.rect(0, 0, width, height)
41
  // ctx.fillStyle = `rgba(${bg[0]}, ${bg[1]}, ${bg[2]}, ${1})`
42
  ctx.fillStyle = `rgba(0, 0, 0, ${1})`
43
  ctx.fill()
44
  
45
  ctx2.beginPath();
46
  ctx2.rect(0, 0, width, height)
 
CSS
1
canvas, body{
2
  padding: 0;
3
  margin: 0;
4
  overflow: hidden;
5
}
 
HTML
1
 
 

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