-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
71 lines (59 loc) · 1.36 KB
/
index.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<!DOCTYPE html>
<html>
<head>
<title>Aula 1</title>
</head>
<body>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.7.0/p5.min.js" ></script>
<script>
function setup() {
createCanvas(windowWidth, windowHeight);
background(250);
// strokeWeight(1);
}
function draw() {
// background(250);
// let radius = width * 1.5;
//drag to move the world.
// orbitControl();
// normalMaterial();
// translate(0, 0, -600);
// for (let i = 0; i <= 60; i++) {
// for (let j = 0; j <= 60; j++) {
// push();
/// let a = (j / 12) * PI;
// let b = (i / 12) * PI;
// translate(
/// sin(2 * a) * radius * sin(b),
// (cos(b) * radius) / 2,
// cos(2 * a) * radius * sin(b)
// );
// if (j % 2 === 0) {
// cone(30, 30);
// } else {
// box(30, 30, 30);
// }
// pop();
// }
// }
noFill ;
fill(0, 100, 0,127);
rect(0,50,100,20);
stroke(0);
circle(mouseX, mouseY, 60);
// let x = mouseX;
// let y = mouseY;
// let ix = width - mouseX; // Inverse X
// let iy = height - mouseY; // Inverse Y
// fill(255, 150);
// stroke (0)
// ellipse(x, height/2, y, y);
// fill(0, 159);
// stroke (255)
// ellipse(ix, height/2, iy, iy);
//background (250)
line(mouseX, mouseY, pmouseX, pmouseY);
}
</script>
</body>
</html>