-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpage-1.html
54 lines (41 loc) · 1.28 KB
/
page-1.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<!doctype html>
<html lang="es">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Primera</title>
</head>
<body>
<!--Bibliotecas P5.JS-->
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.6.0/p5.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.6.0/addons/p5.dom.min.js"></script>
<!--script P5.JS-->
<script>
function setup(){
var w = windowWidth-10, h = 380;
var canvas = createCanvas(w,h);
noStroke();
smooth();
}
function draw(){
background(255,255,255);
fill(97, 58, 119);
ellipse(((windowWidth/5)*1),190,150,150);
textAlign(CENTER);
text("UF",((windowWidth/5)*1),300);
fill(74, 30, 99);
ellipse(((windowWidth/5)*2),190,10,10);
textAlign(CENTER);
text("Dólar",((windowWidth/5)*2),300);
fill(128, 39, 178);
ellipse(((windowWidth/5)*3),190,30,30);
textAlign(CENTER);
text("Euro",((windowWidth/5)*3),300);
fill(119, 72, 145);
ellipse(((windowWidth/5)*4),190,190,190);
textAlign(CENTER);
text("UTM",((windowWidth/5)*4),300);
}
</script>
</body>
</html>