tortuga.h is a "header only" library that adds turtle graphics functions (LOGO type) to the C and C++ languages. It was developed to teach programming to teenagers transitioning from visual programming languages (Scratch, mBlock) to text-based languages.
|
avanza(500);
|
|
av(500);
|
|
retrocede(500);
|
|
re(500);
|
|
giraderecha(90);
|
|
gd(90);
|
|
giraizquierda(90);
|
|
gi(90);
|
|
ir(50,90);
|
|
subelapiz();
|
|
sl();
|
|
penup();
|
|
pu();
|
|
bajalapiz();
|
|
bl();
|
|
pendown();
|
|
pd();
|
|
colorlapiz(120,255,56);
|
|
cl(120,255,56);
|
|
grosorlapiz(30);
|
|
gl(30);
|
|
mostrartortuga();
|
|
mt();
|
|
ocultatortuga();
|
|
ot();
|
|
azar(20);
|
|
random(20);
|
|
esperar();
|
|
wait();
|
|
ventana(x,y,ancho,alto);
|
|
ventana(10,20,800,400);
|
|
coordenadas(iz,de,ar,ab);
|
|
coordenadas(-2000,2000,2000,-2000);
|
|
circle(X,Y,R,color,relleno);
|
|
circulo(X,Y,R,color,relleno);
|
|
rectangle(x1,y1,x2,y2,color,Fill);
|
|
rectangulo(x1,y1,x2,y2,color,Fill);
|
|
line (x1,y1,x2,y2,color, ancho);
|
|
line (x1,y1,x2,y2,color, ancho);
|
|
pixel(x, y, color);
|
No comments yet.
Cheatography n. The art of mapping complex subjects into clear, instantly navigable reference guides.