You are on page 1of 21

AUTOAPRENDIZAJE

@Alfreddy
Tipos basicos
https://kotlinlang.org/docs/reference/basic-types.html#basic-types
https://www.youtube.co
m/watch?v=HEkc00Wun
Ns

Youtuber Kotlin
• DATOS NUMERICOS

• NUMERICOS DECIMALES|

• CADENAS
EJEMPLOS

• EJEMPLO DATOS NUMERICOS

• NUMERICOS DECIMALES|

• CADENAS
Cursos online Android-kotlin
• FREE
• https://developer.android.com/courses/

• https://codelabs.developers.google.com/android-kotlin-fundamentals/

• https://developer.android.com/courses/topics/android-basics-kotlin?hl=es
• https://www.udacity.com/course/developing-android-apps-with-kotlin--ud9012

• NOT FREE
• https://www.oreilly.com/library/view/introduction-to-kotlin/9781491964125/
Cursos

https
://codelabs.develo
pers.google.com/a
ndroid-kotlin-fund
amentals
/
Ejercicios print
println \n
Vocabulario Kotlin \

• https://
developer.android.com/cou
rses/android-basics-kotlin/k
otlin-quick-guide

• https://
developer.android.com/cou
rses/android-basics-kotlin/a
ndroid-basics-kotlin-vocab
Ellipse(x, y, a,
b)

fill(COLOR)
background(3, 224, 187);fill(242, 228, 228);ellipse(212,
206, 340, 318);fill(130, 92, 92);ellipse(220, 320, 30,
30);ellipse(140, 300, 30, 30);ellipse(300, 310, 30,
30);fill(114, 129, 196);ellipse(150, 200, 160,
160);ellipse(308, 210, 140, 160);fill(232, 223,
97);ellipse(140, 165, 70,
70);ellipse(170,230,70,70);ellipse(300, 175,
60,70);ellipse(349,219,60,70);
• background(219, 216,
46);//cuellostrokeWeight(3);fill(106, 171,
109);rotate(20);ellipse(401, 57, 283,
123);//cabellorotate(-
20);strokeWeight(3);fill(33, 28,
28);triangle(371,121,317,129, 333, 100);
triangle(348,209,298,178, 268,
213);fill(242, 133,
8);beginShape();vertex(128,
95);vertex(234, 53);vertex(319,
71);vertex(360,
58);vertex(320,126);vertex(371,
123);vertex(285, 210);vertex(346,
210);vertex(213, 282);vertex(135,
243);endShape(CLOSE);//cabezastrokeW
eight(3);fill(106, 171,
109);beginShape();vertex
(20,137);vertex(102, 88);vertex(201,
88);vertex(267, 205);vertex(101,
258);vertex(20,
204);endShape();line(20,137,20,204);//b
ocafill(33, 30, 30);stroke(58, 56,
69);strokeWeight(3.5);line(20,205, 70,
205);line(70,205, 86, 180);line(86,205,
86, 180);line(86,205, 110,
205);line(125,224, 110,
205);line(125,224, 141,
205);line(141,205, 169,
205);line(192,163, 169,
205);line(192,163, 193,
198);line(225,197, 193,
198);//narizline(20,158, 70,
158);line(70,158, 70, 135);line(53,136, var K=
70, 135);line(53,136, 53,
149);//ojostroke(59, 49, 49);fill(228, 228, createFont("cursive")
237);beginShape();vertex(185,148);verte
x(197,138);bezierVertex(124, 105, 168, ;textFont(K);fill(57,
119, 112, 157);endShape();stroke(59, 49,
49);fill(76, 76, 70,
89);beginShape();vertex(185,148);vertex
(197,138);bezierVertex(124, 105, 192, 191);textSize(50);text
136, 150,
153);endShape();line(185,148,115, 156); ("MyKtlan",100,200);
//3d
background(32, 36, 32);
stroke(255, 251, 0);
line(0,0,25,400);
line(0,25,50,400);
line(0,50,75,400);
line(0,75,100,400);
line(0,100,125,400);
line(0,125,150,400);
line(0,150,175,400);
line(0,175,200,400);
line(0,200,225,400);
line(0,225,250,400);
line(0,250,275,400);
line(0, 275,300,400);
line(0,300,325,400);
line(0,325,350,400);
line(0,350,375,400);
line(0,375,400,400);

stroke(255, 0, 230);
line(0,0,400,25);
line(25,0,400,50);
line(50,0,400,75);
line(75,0,400,100);
line(100,0,400,125);
line(125,0,400,150);
line(150,0,400,175);
line(175,0,400,200);
line(200,0,400,225);
line(225,0,400,250);
line(250,0,400,275);
line(275,0,400,300);
line(300,0,400,325);
line(325,0,400,350);
line(350,0,400,375);
line(375,0,400,400);
//estrella
background(15, 15, 14);

strokeWeight(2);
stroke(242, 239, 239);
line(200,0,200,400);
line(0,200,400,200);

//izq,up
stroke(235, 117, 99);
line(200,0,175,200);
line(200,25,150,200);
line(200,50,125,200);
line(200,75,100,200);
line(200,100,75,200);
line(200,125,50,200);
line(200,150,25,200);
line(200,175,0,200);

//der,up
stroke(234, 78, 237);
line(200,0,225,200);
line(200,25,250,200);
line(200,50,275,200);
line(200,75,300,200);
line(200,100,325,200);
line(200,125,350,200);
line(200,150,375,200);
line(200,175,400,200);

//izq,down
stroke(4, 255, 0);
line(0,200,200,225);
line(25,200,200,250);
line(50,200,200,275);
line(75,200,200,300);
line(100,200,200,325);
line(125,200,200,350);
line(150,200,200,375);
line(175,200,200,400);

//der,down
stroke(235, 191, 59);
line(400,200,200,225);
line(375,200,200,250);
line(350,200,200,275);
line(325,200,200,300);
line(300,200,200,325);
line(275,200,200,350);
line(250,200,200,375);
line(225,200,200,400);
//MiKltan

background(300, 300, 250);

strokeWeight(3);

stroke(56, 222, 211);

quad(200, 0, 200, 400, 150, 350, 150, 50);

quad(0, 0, 50, 50, 50, 350, 0,400);

beginShape();

vertex(75,75);

vertex(100, 100);

MyKtlan
vertex(125,75);

vertex(125,275);

stroke(127, 232, 147);

vertex(100,300);

vertex(75,275);

vertex(75,75);

endShape();

quad(200,125,300,25,375,25,200,200);

stroke(56, 222, 211);

quad(200,200,400,400,325,400,200,275);

stroke(127, 232, 147);

quad(400,350,400,400,200,200,225,175);
var xPos = 20;
var xPos = 20;
var yPos = 350;
var yPos = 350;
draw = function() {
draw = function() {
background(29, 40, 115);
background(29, 40, 115);
fill(41, 34, 34);
fill(41, 34, 34);
rect(xPos,yPos,70,70,xPos);
rect(xPos,yPos,70,70,xPos);
fill(255, 242, 0);
fill(255, 242, 0);
ellipse(xPos, yPos, 50,50);
ellipse(xPos, yPos, 50,50);
fill(255, 0, 0);
fill(255, 0, 0);
ellipse(xPos, yPos, 20, 20);
ellipse(xPos, yPos, 20, 20);
xPos+=1;yPos-=1;
xPos+=1;yPos-=1;
};
};

You might also like