-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
130 lines (121 loc) · 6.64 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta property=’og:title’ content='Generative Art using P5.js'/>
<meta property=’og:image’ content='https://i.ibb.co/BBYJ8SL/design-41-Custom.jpg’/>
<meta property=’og:description’ content='A demo of p5.js to showcase creation of generative art using perlin noise, bezier curves and kaleidoscope'/>
<meta property=’og:url’ content='enryuux7.github.io'/>
<meta property='og:image:width' content='1200' />
<meta property='og:image:height' content='627' />
<title>Generative Art using P5.js</title>
<link rel="stylesheet" type="text/css" href="css/index_styles.css">
<script src="js/p5/p5.js"></script>
<script src="js/jquery/jquery-3.5.1.min.js"></script>
</head>
<body>
<div class="starfield">
</div>
<section class="et-hero-tabs" id="tab-home">
<h1>Generative Art using P5.js</h1>
<h3 style="font-size: larger;">Explore the different Sketches made using p5.js</h3>
<h3>Made by</h3><h3 style="opacity: 0.7;font-size: larger;">Abhishek Pandey (<a href="https://www.deviantart.com/en-ryuu">En-Ryuu</a>)</h3>
<div class="et-hero-tabs-container">
<a class="et-hero-tab" href="#tab-home">Home</a>
<a class="et-hero-tab" href="#tab-weave">Weave.js</a>
<a class="et-hero-tab" href="#tab-pnoise">Perlin Noise</a>
<a class="et-hero-tab" href="#tab-bezier">Bezier Curve</a>
<a class="et-hero-tab" href="#tab-kscope">Kaleidoscope</a>
<a class="et-hero-tab" href="#tab-starfield">Starfield</a>
<a class="et-hero-tab-link" href="learn.html">Learn</a>
<span class="et-hero-tab-slider"></span>
</div>
</section>
<div class="infobox">
<div class="main">
<section class="inf-box" id="tab-weave">
<div class="flip front" >
<h1>Weave.js</h1>
<p>Click image to open and interact with weave.js</p>
<a href="weave.html">
<img src="images/weave2.gif">
</a>
</div>
</section>
<section class="inf-box" id="tab-pnoise">
<div class="flip front" >
<h1>Perlin noise</h1>
<div class="codebox">
<p class="codepen" data-height="720" data-theme-id="dark" data-default-tab="js,result" data-user="enryuu" data-slug-hash="ZEBQGzz" style="height: 532px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; border: 2px solid; margin: 1em 0; padding: 1em;" data-pen-title="Perlin Noise">
<span>See the Pen <a href="https://codepen.io/enryuu/pen/ZEBQGzz">
Perlin Noise</a> by Abhishek Pandey (<a href="https://codepen.io/enryuu">@enryuu</a>)
on <a href="https://codepen.io">CodePen</a>.</span>
</p>
<script async src="https://cpwebassets.codepen.io/assets/embed/ei.js"></script>
<script async src="https://cpwebassets.codepen.io/assets/embed/ei.js"></script>
</div>
</div>
</section>
<section class="inf-box" id="tab-bezier">
<div class="flip front" >
<h1>Bezier Curve + noise</h1>
<div class="codebox">
<<p class="codepen" data-height="525" data-theme-id="dark" data-default-tab="js,result" data-user="enryuu" data-slug-hash="mdONvgQ" style="height: 525px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; border: 2px solid; margin: 1em 0; padding: 1em;" data-pen-title="mdONvgQ">
<span>See the Pen <a href="https://codepen.io/enryuu/pen/mdONvgQ">
mdONvgQ</a> by Abhishek Pandey (<a href="https://codepen.io/enryuu">@enryuu</a>)
on <a href="https://codepen.io">CodePen</a>.</span>
</p>
<script async src="https://cpwebassets.codepen.io/assets/embed/ei.js"></script>
</div>
</div>
</section>
<section class="inf-box" id="tab-kscope">
<div class="flip front" >
<h1>Kaleidoscope</h1>
<p>Press R to clear screen</p>
<div class="codebox">
<p class="codepen" data-height="562" data-theme-id="dark" data-default-tab="js,result" data-user="enryuu" data-slug-hash="MWbKwOa" style="height: 562px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; border: 2px solid; margin: 1em 0; padding: 1em;" data-pen-title="Kaleidoscope">
<span>See the Pen <a href="https://codepen.io/enryuu/pen/MWbKwOa">
Kaleidoscope</a> by Abhishek Pandey (<a href="https://codepen.io/enryuu">@enryuu</a>)
on <a href="https://codepen.io">CodePen</a>.</span>
</p>
<script async src="https://cpwebassets.codepen.io/assets/embed/ei.js"></script>
</div>
</div>
</section>
<section class="inf-box" id="tab-starfield">
<div class="flip front" >
<h1>Starfield</h1>
<div class="codebox">
<p class="codepen" data-height="479" data-theme-id="dark" data-default-tab="js,result" data-user="enryuu" data-slug-hash="NWbxyaJ" style="height: 479px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; border: 2px solid; margin: 1em 0; padding: 1em;" data-pen-title="NWbxyaJ">
<span>See the Pen <a href="https://codepen.io/enryuu/pen/NWbxyaJ">
NWbxyaJ</a> by (<a href="https://codepen.io/enryuu">@enryuu</a>)
on <a href="https://codepen.io">CodePen</a>.</span>
</p>
<script async src="https://cpwebassets.codepen.io/assets/embed/ei.js"></script>
</div>
</div>
</section>
</div>
</div>
<script>
(function drawStars() {
var boxShadow = '';
var windowWidth = window.innerWidth;
var windowHeight = window.innerHeight * 8;
console.log(windowWidth + ', ' + windowHeight);
for (var x = 0; x < 800; x++) {
let rW = Math.random();
let rH = Math.random();
let w = windowWidth * rW;
let h = windowHeight * rH;
boxShadow += w + 'px ' + h + 'px 0 0 #fff, ';
}
boxShadow = boxShadow.slice(0, -2);
$('.starfield').css('box-shadow', boxShadow);
})();
</script>
<script src="js/nav-bar.js"></script>
</body>
</html>