Toggle navigation
Explora
(current)
Aprende
Crea
Retos
×
Aspectos básicos
void main() {...}
for ( int i = 0 ; i < N ; i++ ) {...}
while (condición) {...}
do {...} while (condición);
if (condición) {...}
if (condición) {...} else {...}
switch (valor) {...}
Mostrar y pedir datos
print()
println()
readInteger()
readDouble()
readChar()
readString()
Funciones matemáticas
abs(n)
log(n)
sqrt(n)
pow(b,e)
floor(n)
ceil(n)
round(n)
sin(n)
cos(n)
tan(n)
asin(n)
acos(n)
atan(n)
random(n)
Funciones gráficas
point(x,y)
line(x1,y1,x2,y2)
ellipse(x,y,w,h)
rect(x,y,w,h)
triangle(x1,y1,x2,y2,x3,y3)
text(msg,x,y)
textWidth(msg)
textSize(n)
background(r,g,b,a)
strokeWeight(n)
stroke(r,g,b,a)
noStroke()
fill(r,g,b,a)
noFill()
image(url, x,y,w,h)
Nuevo
Ayuda
Probar
...
void main(){ //Orejas fill (200,200,100); ellipse(100,100,70,70); ellipse(220,100,70,70); //Cabeza fill (160,150,40); ellipse(160,160,150,150); //Ojos fill (255,255,255); ellipse(140,140,30,50); fill (0,0,0); ellipse(150,140,5,5); fill (255,255,255); ellipse(180,140,30,50); fill (0,0,0); ellipse(170,140,5,5); //Nariz ellipse(160,170,30,10); //Boca ellipse(160,200,15,5); }
Canvas not supported.
Programado por
Antonio_Rosa
0 votos
208 descargas
64 usos