You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -1,15 +1,15 @@
1
1
# RayLib-Examples
2
2
Some fun math or physics demos made easy with [RayLib](https://github.com/raysan5/raylib)
3
3
4
-
*Note that the examples with GUIs also require [RayGui](https://github.com/raysan5/raygui), an optional companion to RayLib*
4
+
*Note that the examples with GUIs also require [RayGui](https://github.com/raysan5/raygui), an optional companion to RayLib that is super-easy to install*
5
5
6
-
<b>Water Sim: Ripple Tank Physics</b>
6
+
## Water Sim: Ripple Tank Physics
7
7
Simulates water in a ripple tank. Demonstrates basic wave mechanics: wave reflection, diffraction, and superimposition.
8
8
9
9
Press "P" to pause the simulation and "R" to reset it. Left-click to add a drop to the pool, or left-click and drag to run your finger through the water. Right-click to draw boundaries. Hold "E" while right-clicking to erase them. Hold X to draw a straight-line boundary across the x-axis. Hold Z for z-axis. Hold X and E to erase a whole line. Alter the code to add as many colored floating spheres as you'd like, or none.
10
10

11
11
12
-
<b>Strange Attractor:</b>
12
+
## Strange Attractor:
13
13
Plots the Clifford Pickover attractor, a point cloud in 3D space.
14
14
15
15
Top sliders demonstrate the fact that the system is an attractor: initial conditions don't change the shape.
@@ -18,18 +18,18 @@ Check boxes allow you to cycle through two parameters gradually to see the chang
Plots the Lorenz attractor using lines in 3D space. Use X, Y, Z controls to specify the initial point, which shows that the system is indeed an attractor. One of the earliest "strange attractors" in chaos theory.
23
23
24
24

25
25
26
-
<b>Prime Viewer:</b>
26
+
## Prime Viewer:
27
27
Four ways to visualize the distribution of all primes less than 1,000,000. Press 1, 2, 3 or 4 to change view modes.
28
28
* Mode 1: Plots primes as semi-transparent white cubes on a 100x100x100 grid. Rotate and pan the view to see rows of numbers eliminated.
29
29
* Mode 2: Plots primes as white cubes, other numbers are color-coded by the lowest prime factor that makes them not prime. Primes can be turned off with check box. Use the sliders to see how non-primes are arranged by their least common factor.
30
30
* Mode 3: Wheel factorization, using sectors. Use the spinner to choose your factor base for the wheel.
31
31
* Mode 4: Wheel factorization, using points. Same as above, but points look better for high factor bases.
0 commit comments