-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path26-karmasik-sekil-cizmek.htm
More file actions
101 lines (74 loc) · 2.87 KB
/
26-karmasik-sekil-cizmek.htm
File metadata and controls
101 lines (74 loc) · 2.87 KB
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
<!DOCTYPE html>
<html>
<head>
<title>Karmaşık Şekil Çizmek</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- DIŞARIDAN YÜKLENEN KÜTÜPHANE DOSYALARI -->
<link rel="stylesheet" type="text/css" href="kutuphane/basic.css">
<script src="kutuphane/basic.js" type="text/javascript" charset="utf-8"></script>
<script>
var boxRotate = 0
var colors1 = ["seagreen", "lightgray", "steelblue"]
var colors2 = ["orangered", "tomato", "gold", "yellow", "steelblue"]
// İlk çalışan fonksiyon.
var start = function() {
setLoopTimer(2)
}
// Her saniye çalışan fonksiyon.
var loop = function() {
if (boxRotate < 1000) {
createBox(50, 50)
that.width = random(90, 620)
that.height = random(90, 620)
that.border = 1
that.borderColor = colors1[random(0, colors1.length - 1)]
that.color = "transparent"
that.opacity = 0.1
that.element.style.visibility = "visible"
// NOT: Nesnenin hızlı gösterilmesi için yapılmıştır.
// çünkü, basic.js kütüphanesi, nesneleri bir süreliğine saklar.
that.center()
boxRotate++
that.rotate = boxRotate
}
if (boxRotate >= 1000) {
if (boxRotate < 2500) {
createBox(50, 50)
that.width = random(90, 220)
that.height = random(90, 220)
that.border = 1
that.borderColor = colors2[random(0, colors2.length - 1)]
that.color = "transparent"
that.opacity = 0.3
that.element.style.visibility = "visible"
that.center()
boxRotate++
that.rotate = boxRotate
}
}
/*
if (boxRotate >= 2500) {
if (boxRotate < 2520) {
createBox(50, 50)
that.width = 300
that.height = 300
that.border = 1
that.round = 60
that.borderColor = "mediumorchid"
that.color = "transparent"
that.opacity = 0.3
that.element.style.visibility = "visible"
that.center()
boxRotate++
that.rotate = boxRotate
}
}
*/
}
</script>
</head>
<body>
<!-- HTML içeriği -->
</body>
</html>