#+OPTIONS: H:20 num:20
#+OPTIONS: author:nil
+#+begin_export html
+<style>
+ .flex-center {
+ display: flex; /* activate flexbox */
+ justify-content: center; /* horizontally center anything inside */
+ }
+</style>
+#+end_export
+
* Bump mapping
Light source moves around. Based on light source location, different
parts of the surface become illuminated.
#+begin_export html
-<video width="300" controls loop autoplay>
- <source src="Bump mapping.webm" type="video/webm">
- Your browser does not support the video tag.
-</video>
+<div class="flex-center">
+ <video width="300" controls loop autoplay>
+ <source src="Bump mapping.webm" type="video/webm">
+ Your browser does not support the video tag.
+ </video>
+</div>
#+end_export
[[file:Bump mapping.bas][Source code]]
Tree grows and branches out.
#+begin_export html
-<video width="800" controls loop autoplay>
- <source src="Tree.webm" type="video/webm">
- Your browser does not support the video tag.
-</video>
+<div class="flex-center">
+ <video width="1000" controls loop autoplay>
+ <source src="Tree.webm" type="video/webm">
+ Your browser does not support the video tag.
+ </video>
+</div>
#+end_export
[[file:Tree.bas][Source code]]
Grid of dots is rotated on the screen.
#+begin_export html
-<video width="800" controls loop autoplay>
- <source src="2D rotation.webm" type="video/webm">
- Your browser does not support the video tag.
-</video>
+<div class="flex-center">
+ <video width="1000" controls loop autoplay>
+ <source src="2D rotation.webm" type="video/webm">
+ Your browser does not support the video tag.
+ </video>
+</div>
#+end_export
[[file:2D rotation.bas][Source code]]
accomplished using text-mode rendering.
#+begin_export html
-<video width="800" controls loop autoplay>
- <source src="text mode animation.webm" type="video/webm">
- Your browser does not support the video tag.
-</video>
-#+end_export
+<div class="flex-center">
+ <video width="1000" controls loop autoplay>
+ <source src="text mode animation.webm" type="video/webm">
+ Your browser does not support the video tag.
+ </video>
+</div>
+ #+end_export
[[file:text mode animation.bas][Source code]]
it tries to skid around a bit, bit ultimately freezes in-place.
#+begin_export html
-<video width="800" controls loop autoplay>
- <source src="Snowfall.webm" type="video/webm">
- Your browser does not support the video tag.
-</video>
+<div class="flex-center">
+ <video width="1000" controls loop autoplay>
+ <source src="Snowfall.webm" type="video/webm">
+ Your browser does not support the video tag.
+ </video>
+</div>
#+end_export
[[file:Snowfall.bas][Source code]]
line coordinates.
#+begin_export html
-<video width="800" controls loop autoplay>
- <source src="Screensaver.webm" type="video/webm">
- Your browser does not support the video tag.
-</video>
+<div class="flex-center">
+ <video width="1000" controls loop autoplay>
+ <source src="Screensaver.webm" type="video/webm">
+ Your browser does not support the video tag.
+ </video>
+</div>
#+end_export
[[file:Screensaver.bas][Source code]]
Quick implementation for colorful flying hand fans.
#+begin_export html
-<video width="800" controls loop autoplay>
- <source src="Screensaver, flying hand fans.webm" type="video/webm">
- Your browser does not support the video tag.
-</video>
+<div class="flex-center">
+ <video width="1000" controls loop autoplay>
+ <source src="Screensaver, flying hand fans.webm" type="video/webm">
+ Your browser does not support the video tag.
+ </video>
+</div>
#+end_export
[[file:Screensaver, flying hand fans.bas][Source code]]
coordinates.
#+begin_export html
-<video width="800" controls loop autoplay>
- <source src="Polygon.webm" type="video/webm">
- Your browser does not support the video tag.
-</video>
+<div class="flex-center">
+ <video width="1000" controls loop autoplay>
+ <source src="Polygon.webm" type="video/webm">
+ Your browser does not support the video tag.
+ </video>
+</div>
#+end_export
[[file:Polygon.bas][Source code]]
arbitrary coordinates.
#+begin_export html
-<video width="800" controls loop autoplay>
- <source src="Polygon textured.webm" type="video/webm">
- Your browser does not support the video tag.
-</video>
+<div class="flex-center">
+ <video width="1000" controls loop autoplay>
+ <source src="Polygon textured.webm" type="video/webm">
+ Your browser does not support the video tag.
+ </video>
+</div>
#+end_export
[[file:Polygon textured.bas][Source code]]
-
* Yin and yang animation
Yin and yang is a concept that originated in Chinese philosophy,
important for cohesion of the whole.
#+begin_export html
-<video width="800" controls loop autoplay>
- <source src="Yin and yang.webm" type="video/webm">
- Your browser does not support the video tag.
-</video>
+<div class="flex-center">
+ <video width="1000" controls loop autoplay>
+ <source src="Yin and yang.webm" type="video/webm">
+ Your browser does not support the video tag.
+ </video>
+</div>
#+end_export
[[file:Yin and yang.bas][Source code]]
are orbiting central point. Each particle is connected to the center.
#+begin_export html
-<video width="800" controls loop autoplay>
- <source src="Orbiting particles.webm" type="video/webm">
- Your browser does not support the video tag.
-</video>
+<div class="flex-center">
+ <video width="1000" controls loop autoplay>
+ <source src="Orbiting particles.webm" type="video/webm">
+ Your browser does not support the video tag.
+ </video>
+</div>
#+end_export
[[file:Orbiting particles.bas][Source code]]
#+INCLUDE: "Orbiting particles.bas" src basic-qb45
-
* DNA animation
Animated DNA. Nowhere close to being anatomically correct, but
resembles animation as seen in the movies :)
#+begin_export html
-<video width="800" controls loop autoplay>
- <source src="DNA.webm" type="video/webm">
- Your browser does not support the video tag.
-</video>
+<div class="flex-center">
+ <video width="1000" controls loop autoplay>
+ <source src="DNA.webm" type="video/webm">
+ Your browser does not support the video tag.
+ </video>
+</div>
#+end_export
[[file:DNA.bas][Source code]]
Effect inspired by "The Matrix" movie.
#+begin_export html
-<video width="800" controls loop autoplay>
- <source src="matrix.webm" type="video/webm">
- Your browser does not support the video tag.
-</video>
+<div class="flex-center">
+ <video width="1000" controls loop autoplay>
+ <source src="matrix.webm" type="video/webm">
+ Your browser does not support the video tag.
+ </video>
+</div>
#+end_export
[[file:matrix.bas][Source code]]
-
* Hacker
Ultra-realistic hacker screen simulator! Behold da glory of a true
a waterfall of knowledge across thy monitor.
#+begin_export html
-<video width="800" controls loop autoplay>
- <source src="hacker.webm" type="video/webm">
- Your browser does not support the video tag.
-</video>
+<div class="flex-center">
+ <video width="1000" controls loop autoplay>
+ <source src="hacker.webm" type="video/webm">
+ Your browser does not support the video tag.
+ </video>
+</div>
#+end_export
[[file:hacker.bas][Source code]]