You are viewing our Forum Archives. To view or take place in current topics click here.
#231. Posted:
Status: Offline
Joined: Nov 28, 201311Year Member
Posts: 909
Reputation Power: 58
#232. Posted:
Status: Offline
Joined: Jul 27, 201113Year Member
Posts: 14,536
Reputation Power: 1278
Status: Offline
Joined: Jul 27, 201113Year Member
Posts: 14,536
Reputation Power: 1278
javascript:$(function(){$("#controls > div").hide();$('<canvas id="viewport" width="140" height="65">').css("float","left").appendTo("#controls");$("<button />",{text:"Show",click:function(){var e=$(this).text();if(e==="Show"){$(this).text("Hide");$("#controls > div").show()}else if(e==="Hide"){$(this).text("Show");$("#controls > div").hide()}}}).css("float","left").appendTo("#controls");var e=$("#viewport")[0],t=e.getContext("2d");var n={anarchy:{pos:{x:45,y:0},alpha:.5,image:function(){var e=new Image;e.src="http://cdn.bulbagarden.net/upload/4/47/Bag_Helix_Fossil_Sprite.png";return e}(),path:function(e){e.beginPath();e.rect(0,0,this.image.width,this.image.height);e.closePath()},draw:function(e){e.save();e.translate(this.pos.x,this.pos.y);e.globalAlpha=this.alpha;e.drawImage(this.image,0,0);e.restore()}},democracy:{pos:{x:70,y:0},alpha:.5,image:function(){var e=new Image;e.src="http://cdn.bulbagarden.net/upload/5/5f/Bag_Dome_Fossil_Sprite.png";return e}(),path:function(e){e.beginPath();e.rect(0,0,this.image.width,this.image.height);e.closePath()},draw:function(e){e.save();e.translate(this.pos.x,this.pos.y);e.globalAlpha=this.alpha;e.drawImage(this.image,0,0);e.restore()}},left:{pos:{x:0,y:15},alpha:.5,path:function(e){e.beginPath();e.moveTo(0,0);e.lineTo(10,0);e.lineTo(15,5);e.lineTo(10,10);e.lineTo(0,10);e.closePath()},draw:function(e){e.save();e.translate(this.pos.x,this.pos.y);e.fillStyle="rgba(0,0,0,"+this.alpha+")";this.path(e);e.fill();e.restore()}},up:{pos:{x:15,y:0},alpha:.5,path:function(e){e.beginPath();e.moveTo(0,0);e.lineTo(10,0);e.lineTo(10,10);e.lineTo(5,15);e.lineTo(0,10);e.closePath()},draw:function(e){e.save();e.translate(this.pos.x,this.pos.y);e.fillStyle="rgba(0,0,0,"+this.alpha+")";this.path(e);e.fill();e.restore()}},right:{pos:{x:25,y:15},alpha:.5,path:function(e){e.beginPath();e.moveTo(0,5);e.lineTo(5,0);e.lineTo(15,0);e.lineTo(15,10);e.lineTo(5,10);e.closePath()},draw:function(e){e.save();e.translate(this.pos.x,this.pos.y);e.fillStyle="rgba(0,0,0,"+this.alpha+")";this.path(e);e.fill();e.restore()}},down:{pos:{x:15,y:25},alpha:.5,path:function(e){e.beginPath();e.moveTo(5,0);e.lineTo(10,5);e.lineTo(10,15);e.lineTo(0,15);e.lineTo(0,5);e.closePath()},draw:function(e){e.save();e.translate(this.pos.x,this.pos.y);e.fillStyle="rgba(0,0,0,"+this.alpha+")";this.path(e);e.fill();e.restore()}},a:{pos:{x:125,y:17},alpha:.5,path:function(e){e.beginPath();e.arc(0,0,9,0,Math.PI*2);e.closePath()},draw:function(e){e.save();e.translate(this.pos.x,this.pos.y);e.fillStyle="rgba(200,0,0,"+this.alpha+")";this.path(e);e.fill();e.restore()}},b:{pos:{x:105,y:30},alpha:.5,path:function(e){e.beginPath();e.arc(0,0,9,0,Math.PI*2);e.closePath()},draw:function(e){e.save();e.translate(this.pos.x,this.pos.y);e.fillStyle="rgba(200,0,0,"+this.alpha+")";this.path(e);e.fill();e.restore()}},select:{pos:{x:45,y:35},alpha:.5,path:function(e){e.beginPath();e.arc(14,3,3,3*Math.PI/2,Math.PI/2);e.arc(3,3,3,Math.PI/2,3*Math.PI/2);e.closePath()},draw:function(e){e.save();e.translate(this.pos.x,this.pos.y);e.rotate(-Math.PI/8);e.fillStyle="rgba(0,0,0,"+this.alpha+")";this.path(e);e.fill();e.restore()}},start:{pos:{x:70,y:35},alpha:.5,path:function(e){e.beginPath();e.arc(14,3,3,3*Math.PI/2,Math.PI/2);e.arc(3,3,3,Math.PI/2,3*Math.PI/2);e.closePath()},draw:function(e){e.save();e.translate(this.pos.x,this.pos.y);e.rotate(-Math.PI/8);e.fillStyle="rgba(0,0,0,"+this.alpha+")";this.path(e);e.fill();e.restore()}}};var r=function(){window.requestAnimationFrame(r);t.clearRect(0,0,e.width,e.height);var i=$(".chat_line:last").text();$.each(n,function(e,n){if(i===e){n.alpha=1}else{n.alpha=.5}n.draw(t)})};r();$(e).mousedown(function(e){if(e.which===1){$.each(n,function(n,r){t.save();t.translate(r.pos.x,r.pos.y);if(n==="start"||n==="select"){t.rotate(-Math.PI/8)}r.path(t);if(t.isPointInPath(e.offsetX,e.offsetY)){$("#chat_text_input").val(n);$("#chat_speak").trigger("click")}t.restore()})}})})
I was given this related to TwitchPlaysPokemon and it failed hard.
- 0useful
- 0not useful
#233. Posted:
Status: Offline
Joined: Mar 11, 201212Year Member
Posts: 269
Reputation Power: 12
Status: Offline
Joined: Mar 11, 201212Year Member
Posts: 269
Reputation Power: 12
#234. Posted:
Status: Offline
Joined: Jun 22, 201113Year Member
Posts: 3,626
Reputation Power: 167
Status: Offline
Joined: Jun 22, 201113Year Member
Posts: 3,626
Reputation Power: 167
#235. Posted:
Status: Offline
Joined: Jan 16, 201311Year Member
Posts: 1,964
Reputation Power: 184
#236. Posted:
Status: Offline
Joined: Feb 02, 201311Year Member
Posts: 1,349
Reputation Power: 74
Status: Offline
Joined: Feb 02, 201311Year Member
Posts: 1,349
Reputation Power: 74
#237. Posted:
Status: Offline
Joined: Jul 23, 201014Year Member
Posts: 4,622
Reputation Power: 208
Status: Offline
Joined: Jul 23, 201014Year Member
Posts: 4,622
Reputation Power: 208
#238. Posted:
Status: Offline
Joined: Jan 23, 201113Year Member
Posts: 15,189
Reputation Power: 740
Status: Offline
Joined: Jan 23, 201113Year Member
Posts: 15,189
Reputation Power: 740
#239. Posted:
Status: Offline
Joined: Dec 23, 200914Year Member
Posts: 3,046
Reputation Power: 146
Status: Offline
Joined: Dec 23, 200914Year Member
Posts: 3,046
Reputation Power: 146
#240. Posted:
Status: Offline
Joined: Sep 25, 201311Year Member
Posts: 825
Reputation Power: 88
https://www.thetechgame.com/Forums/t=6227231/lemon_s-5000-font-pack-enjoy.html
my last paste.
- Lemon_
my last paste.
- Lemon_
- 0useful
- 0not useful
You are viewing our Forum Archives. To view or take place in current topics click here.