Skip to content

Instantly share code, notes, and snippets.

View HugoLnx's full-sized avatar

HugoLnx HugoLnx

View GitHub Profile
@HugoLnx
HugoLnx / gradiente.html
Created January 10, 2013 12:19
Algoritmo que recebe 2 cores hexadecimais e que desenha o gradiente entre as duas usando canvas do HTML5.
<html>
<body>
<fieldset>
<input id="cor1" type="color" />
<input id="cor2" type="color" />
<button id="btn">Gradiente!</button>
</fieldset>
<canvas id="canvas"></canvas>
<script>
var in1 = document.getElementById("cor1");
@HugoLnx
HugoLnx / robot.js
Created December 8, 2012 02:24 — forked from fabiopimentel/robot.js
[CAELUM TEAM]Megatron
var Megatron = function() {
var Robot = function(robot) {
};
Robot.prototype.onIdle = function(ev) {
var robot = ev.robot;
robot.clone();
robot.ahead(100);
robot.rotateCannon(360);
@HugoLnx
HugoLnx / gist:4238223
Created December 8, 2012 02:18
DoublePersonality
We couldn’t find that file to show.
@HugoLnx
HugoLnx / robot.js
Created December 8, 2012 02:17
DoublePersonality
var Robot = function(){}
@HugoLnx
HugoLnx / robot.js
Created December 8, 2012 02:09
DoublePersonality(CrazyGiroscope+Megatron)
var CrazyGiroscope = function() {
var becameDistant = true;
var Robot = function(robot) {
robot.rotateCannon(-20);
};
Robot.prototype.onIdle = function(ev) {
var robot = ev.robot;
robot.clone();
@HugoLnx
HugoLnx / robot.js
Created December 5, 2012 15:18
SEXMACHINE (JESSE)
var SexMachine = function() {
//FightCode can only understand your robot
//if its class is called Robot
var Robot = function(robot) {
//robot.rotateCannon(90);
};
var state = 0;
var lastFound = 0;
@HugoLnx
HugoLnx / robot.js
Created December 3, 2012 00:16
[CAELUM TEAM] CrazyGiroscope
var CrazyGiroscope = function() {
var becameDistant = true;
var Robot = function(robot) {
robot.rotateCannon(-20);
};
Robot.prototype.onIdle = function(ev) {
var robot = ev.robot;
robot.clone();
@HugoLnx
HugoLnx / CONVENCOES
Created May 9, 2011 23:12
Convencoes do PIGUI
=> Estrutura do zip:
nome_do_layout.zip
index.html <= TEM CONVENÇÕES
style.css
style-estilo1.css
style-estilo2.css
images/
estilo1/
screenshot.png (imagem de demonstração do layout)
(imagens do estilo 1)