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() { //Bandera rect(80-40,100-40, 80*3,30*4); //Mástil rect(80-60,100-40, 20, 30*8); noFill(); strokeWeight(5); //3 aros superiores stroke(0,14, 255,1); ellipse(80,100, 2*30,2*30); stroke(0,0,0); ellipse(80+80,100, 2*30,2*30); stroke(255,0,0,1); ellipse(80+80+80,100, 2*30,2*30); //2 aros inferiores stroke(243,255,0,1); ellipse(80+40,100+30, 2*30,2*30); stroke(1,136,14,1); ellipse(80+40+80,100+30, 2*30,2*30); }
Canvas not supported.
Programado por
2005574
0 votos
25 descargas
2 usos