Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Código:
textSize(30);
fill(8, 0, 0);
text ("My favorite foods", 0, 50);
textSize(20);
fill(8,0,0);
text("*Pizza", 0, 80);
text("*hotdog", 0, 100);
text("*hamburguer", 0, 120);
Rastreador del Ratón
Codigo:
fill(255, 0, 255);
draw = function() {
background(255, 255, 255);
ellipse(mouseX, mouseY, 12, 12);
var coordenadas = mouseX+","+mouseY;
text(coordenadas, mouseX, mouseY);
};
Diseño de anuncio
Codigo:
image(getImage("avatars/avatar-team"), 100,130);
image(getImage("cute/Star"), 10,10);
image(getImage("cute/TreeUgly"),300,250);
var ball = 10;
draw = function() {
ellipse(ball, 100, 20 , 20 );
ball = ball+ 10;
};
Evaluación
Esperando evaluación
Funciones:
Desafío: Di tu nombre
Codigo:
var nombre = function (){
var textX = random(0, 300);
var textY = random(0, 300);
var yourName = "Jonnathan";
fill(255, 0, 0);
textSize(30);
text("Hiiii, " + yourName, textX, textY);
};
nombre ();
nombre ();
nombre ();
nombre ();
Topos en los agujeros
Codigo:
var drawMole = function(moleX , moleY) {
noStroke();
fill(125, 93, 43);
ellipse(moleX, moleY, 60, 60); // face
fill(255, 237, 209);
ellipse(moleX, moleY+10, 33, 28);
fill(0, 0, 0);
ellipse(moleX-10, moleY-15, 10, 10); // eyes
ellipse(moleX+10, moleY-15, 10, 10);
ellipse(moleX, moleY-5, 10, 10); // nose
ellipse(moleX, moleY+10, 20, 5); // mouth
};
Codigo:
var add = function(num1, num2) {
return num1 + num2;
};
var subtract = function(num1, num2) {
return num1 - num2;
};
var multiply = function(num1, num2) {
return num1 * num2;
};
var divide = function(num1, num2) {
return num1 / num2;
};
fill(255, 0, 0);
text("15 + 3 is " + add(15, 3), 10, 20);
text("15 - 3 is " + subtract(15, 3), 10, 50);
text("15 * 3 is " + multiply(15, 3), 10, 80);
text("15 / 3 is " + divide(15, 3), 10, 110);
Proyecto pecera#2
Proyecto pecera#3
Codigo:
background(89, 216, 255);
mouseClicked = function(){
drawFish(mouseX, mouseY, 20,20);
};
};
drawBubbles();
drawBubbles();
drawBubbles();
drawBubbles();
drawBubbles();
drawBubbles();
drawBubbles();
Evaluación
Esperando Evaluación
Circuitos en Tinkercad (operadores Electricos)
Tabla
Operador símbolo
Pila
Baterías de pilas
Regleta de conexión
Lámpara o bombilla
Diodos led
Timbre o zumbador
Resistencia
Pulsador abierto
Pulsador cerrado
Interruptor abierto
Interruptor cerrado
Conmutador
Fusible
Circuito