View SaludaArdillaNext.js
var av = new Avatar(1);
av.scale(0.8);
var draw = function() {
background(0,200,0);
if (av.getAngle(1) < 75) { av.next(1); }
av.next(2);
av.draw(200,200);
};
View TwoPuppets.js
var av=[new Avatar(12), new Avatar(20)];
var draw = function() {
background(200);
av[ round(random(0,1)) ].rotate(
round(random(0,9)),
random(-5,5));
av[0].draw(mouseX, 200);
av[1].draw(mouseY, 200);
};
View HiPhineas.js
var av = new Avatar(15);
av.scale(0.75);
var dir = true;
var c = 0;
var draw = function() {
if (c > 10) { return; }
background(0, 0, 0, 100);
av.draw(mouseX,mouseY);
if ( av.getAngle(1) < 75 ) {
av.rotate(1,2);
View ArdillaSaludando2017.js
var av = new Avatar(2);
var c1 = color(255, 0, 0);
var c2 = color(48, 60, 199);
var c = c1;
var ang = 1;
var mouseClicked = function() {
if ( c===c1 ) {
c = c2;
} else {
View anim-0.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View search_box.html
<!doctype html>
<html lang="es">
<head>
<meta charset="UTF-8">
<title>Buscador</title>
</head>
<script src="http://code.jquery.com/jquery-1.11.0.min.js"></script>
<script>
View minecraft.py
# DROPPING BLOCKS AS YOU WALK
from mcpi.minecraft import Minecraft
from time import sleep
mc = Minecraft.create()
flower = 38
while True:
x, y, z = mc.player.getPos()
View adivina.py
# Filename: adivina.py, alberto@acm.org, Oct'09
import random
def num_azar(m): return random.randint(1,m)
def leer(s): return int(input(s))
oculto = num_azar(1000)
print "\n* JUEGO: ADIVINA NUMERO 1-1000 *"
View draw_star.py
poly = [(10,40),(40,40),(50,10),(60,40),(90,40),
(65,60),(75,90),(50,70),(25,90),(35,60),(10,40)]
tam = len(poly)
w, h, g, inc, s = 400, 400, 0, 1, None
def setup():
global w, h, tam, poly, s
size(w,h)
frameRate(4)
strokeWeight(4);
View FilterCamera.py
# Reconoce rostro y filtra en tiempo real imagenes de video tomadas de la camara
add_library('video')
add_library('opencv_processing')
video, opencv, ancho, alto, fp = None, None, 640, 480, 12
def setup():
global opencv, video, ancho, alto, fp
size(ancho, alto)