blob: 3b2d3fd84b14b85d9be879c89d8e070c5350c67c (
plain)
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
|
### Remarks
1. Run it with `ruby entry.rb 8080`
2. Open "http://localhost:8080"
3. Click on the screen and interact with it
I confirmed the following implementations/platforms:
* Ruby Version
* ruby 3.1.0p0 (2021-12-25 revision fb4df44d16) [x86_64-darwin20]
* Browser
* Chrome(macOS, Android)
* Firefox(macOS)
* Edge(macOS)
### Description
This program is an HTTP server that provides a fractal creature playground.
You can see the heartbeat of a mysterious fractal creature. Clicking on the screen will change the shape of the creature.
Surprisingly, this interactive webpage is built without JavaScript.
### Internals
Fractal: Iterated function system
Rendering from server: Streaming animated GIF
Sending click event to server: `<input type="image" src="streaming.gif">` with `<form target="invisible_iframe">`
### Limitations
Does not work on Safari and iOS.
|