-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstars.html
More file actions
195 lines (174 loc) · 8.79 KB
/
Copy pathstars.html
File metadata and controls
195 lines (174 loc) · 8.79 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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Computer Graphics - Stars</title>
<!-- Open Graph / Facebook -->
<meta property="og:type" content="website" />
<meta property="og:title" content="Computer Graphics" />
<meta property="og:description"
content="This site delves into the captivating world of computer graphics, specifically designed for a university course at the Federal University of Maranhão (UFMA)." />
<meta property="og:image"
content="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiMcXFSjAYBUubJ-oq_i30FNAXJdu9Q5iw9BFNoSlFxkY0icbspLi3b9Re-gwMxlh7bhlurLvxt81AjbKsCTDV_J9y4z4Lc_Lr_XdGTemj7BC5jAseLZk7hqDrxaaUgP_FHi_hGk8DeQto/s768/%25E2%2580%2598Escola+de+Atenas%25E2%2580%2599%252C+de+Rafael+Sanzio+-+Musei+Vaticani+-+Destaque%252C++Out20.jpg" />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="628" />
<!-- Twitter -->
<meta property="twitter:card" content="summary_large_image" />
<meta property="twitter:title" content="Computer Graphics" />
<meta property="twitter:description"
content="This site delves into the captivating world of computer graphics, specifically designed for a university course at the Federal University of Maranhão (UFMA)." />
<meta property="twitter:image"
content="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiMcXFSjAYBUubJ-oq_i30FNAXJdu9Q5iw9BFNoSlFxkY0icbspLi3b9Re-gwMxlh7bhlurLvxt81AjbKsCTDV_J9y4z4Lc_Lr_XdGTemj7BC5jAseLZk7hqDrxaaUgP_FHi_hGk8DeQto/s768/%25E2%2580%2598Escola+de+Atenas%25E2%2580%2599%252C+de+Rafael+Sanzio+-+Musei+Vaticani+-+Destaque%252C++Out20.jpg" />
<meta property="twitter:image:width" content="1200" />
<meta property="twitter:image:height" content="628" />
<link rel="icon" type="image/png" href="./assets/ufma.png" />
<meta name="description"
content="This site delves into the captivating world of computer graphics,
specifically designed for a university course at the Federal University of Maranhão (UFMA).
Here, you'll embark on an exciting exploration of the techniques used to create the stunning visuals and
animations that captivate us in movies, games, and beyond.
Prepare to unlock the secrets behind these digital marvels and develop the skills to bring your own creative vision to life!" />
<link rel="stylesheet" type="text/css" href="style.css" />
<script id="vertex-shader" type="x-shader/x-vertex">
attribute vec4 vPosition;
attribute vec4 vColor;
varying vec4 fColor;
void main()
{
gl_Position = vPosition;
gl_PointSize = 10.0;
fColor = vColor;
}
</script>
<script id="point-vertex-shader" type="x-shader/x-vertex">
attribute vec4 vPosition;
attribute vec4 vColor;
varying vec4 fColor;
void main() {
gl_Position = vPosition;
fColor = vColor;
gl_PointSize = 7.0;
}
</script>
<script id="line-vertex-shader" type="x-shader/x-vertex">
attribute vec4 vPosition;
attribute vec4 vColor;
varying vec4 fColor;
void main() {
gl_Position = vPosition;
fColor = vColor;
}
</script>
<script id="fragment-shader" type="x-shader/x-fragment">
precision mediump float;
varying vec4 fColor;
void main()
{
gl_FragColor = fColor;
}
</script>
<script type="text/javascript" src="./Common/webgl-utils.js"></script>
<script type="text/javascript" src="./Common/initShaders.js"></script>
<script type="text/javascript" src="./Common/MV.js"></script>
<script type="text/javascript" src="./stars/script.js"></script>
</head>
<body style="margin: 0px">
<header>
<div class="container">
<a href="#" class="logo">Computer Graphics</a>
<nav>
<ul>
<li><a href="./index.html">Home</a></li>
<li><a href="./draw.html">Draw mode</a></li>
<li><a href="./pyramids.html">Pyramids</a></li>
<li><a target="_blank" href="https://github.com/felipersteles/computer-graphics">Source code</a></li>
<li><a target="_blank" href="https://felipersteles.netlify.app">About me</a></li>
</ul>
</nav>
</div>
</header>
<section id="home" class="home border-bottom">
<h1>You can see the stars in WebGL</h1>
<p>Dive deeper than your wildest dreams and prepare to be dazzled. Here, the wonders of the cosmos unfold before
your very eyes. Embark on a celestial voyage, where countless stars, like scattered diamonds, paint the vast
canvas of the night sky. Lose yourself in the shimmering expanse, where constellations whisper ancient stories and
distant galaxies beckon with mysteries untold. This is your chance to reach for the stars, not with a telescope,
but with the power of imagination and the magic of WebGL.</p>
</section>
<section class="constellation-graph border-bottom">
<h1>Graphs and Constellations</h1>
<h2>Where Myth Meets Math</h2>
<p>Have you ever gazed upon the night sky and marveled at the constellations? These celestial patterns, like Ursa
Major (the Great Bear), have captivated humanity for millennia. But did you know there's a hidden language lurking
behind the stars – the language of graphs?</p>
<div class="comparison">
<div class="concept">
<h3>Constellation</h3>
<p>A constellation is a sky map, a tapestry woven from starlight. Each star, a gleaming jewel, connected by
lines that paint familiar shapes – a bear, a hunter, a crown. These connections are fixed, a timeless story
etched across the cosmos.</p>
</div>
<div class="concept">
<h3>Graph</h3>
<p>A graph, a web of connections, mirrors the essence of constellations. Stars become nodes, linked by edges
that whisper tales of relationships. But unlike constellations, graphs dance with flexibility. Edges can be
directed or undirected, weighted or not, reflecting a universe of possibilities.</p>
</div>
</div>
<p>
So, the next time you gaze upon the stars, remember – they're not just points of light, but a gateway to a world
of mathematical wonder. Constellations, a glimpse of celestial beauty, and graphs, a powerful tool to map
connections – a beautiful union of myth and math.</p>
</section>
<section id="stars" class="stars">
<div class="center links star-presentation">
<h1>Constellations</h1>
<div id="constellation-selector"></div>
<div id="stars-list" class="flex"></div>
<h2 id="info-constellation"></h2>
<p id="desc-constellation"></p>
</div>
<div>
</div>
<div class="flex padding">
<canvas id="canvas" width="500" height="500" class="stars"></canvas>
<div class="star-area" style="margin-left: 15px;">
<div>
<div>
<label box="box buttons">Name of the star:</label>
<input id="star-name" type="text" />
</div>
<button id="highlight" class="starbtn">Find</button>
</div>
<div>
<p id="description"></p>
</div>
</div>
</div>
</section>
<section class="references padding">
<h2>References</h2>
<ul>
<li><a href="https://en.wikipedia.org/wiki/Aries_(constellation)">Aries</a>. Wikipedia</li>
<li><a href="https://en.wikipedia.org/wiki/Taurus_(constellation)">Taurus</a>. Wikipedia</li>
<li><a href="https://en.wikipedia.org/wiki/Gemini_(constellation)">Gemini</a>. Wikipedia</li>
<li><a href="https://en.wikipedia.org/wiki/Cancer_(constellation)">Cancer</a>. Wikipedia</li>
<li><a href="https://en.wikipedia.org/wiki/Leo_(constellation)">Leo</a>. Wikipedia</li>
<li><a href="https://en.wikipedia.org/wiki/Virgo_(constellation)">Virgo</a>. Wikipedia</li>
<li><a href="https://en.wikipedia.org/wiki/Libra_(constellation)">Libra</a>. Wikipedia</li>
<li><a href="https://en.wikipedia.org/wiki/Scorpius">Scorpius</a>. Wikipedia</li>
<li><a href="https://en.wikipedia.org/wiki/Sagittarius_(constellation)">Sagittarius</a>. Wikipedia</li>
<li><a href="https://en.wikipedia.org/wiki/Capricornus">Capricornus</a>. Wikipedia</li>
<li><a href="https://en.wikipedia.org/wiki/Aquarius_(constellation)">Aquarius</a>. Wikipedia</li>
<li><a href="https://en.wikipedia.org/wiki/Pisces_(constellation)">Pisces</a>. Wikipedia</li>
<li><a href="https://en.wikipedia.org/wiki/Carina_(constellation)">Carina</a>. Wikipedia</li>
</ul>
</section>
<footer>
<p class="copyright">© 2024 <a href="https://github.com/felipersteles">Felipe Teles</a>. All rights reserved.</p>
<br>
<a style="margin-top: 8px;" href="https://satelestes.netlify.app/">See saTelestes</a>
</footer>
</body>
</html>