Skip to content

Commit 49a3379

Browse files
committed
v1.2.1 updates
Perform and spectate mode added css fixes and improvements
1 parent 97d711d commit 49a3379

File tree

9 files changed

+714
-768
lines changed

9 files changed

+714
-768
lines changed

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,19 @@ https://github.com/user-attachments/assets/d01a258c-34f4-4e3b-8bd5-1b9b1aaee542
2424
- Video effects <i>(Antialiasing, Bloom, Blur, Brightness, Contrast, Edges, Focus, Godrays, Motion Blur, Hue, Invert)</i>
2525
- Camera control <i>(WASD, arrows)</i>
2626
- MouseX and MouseY tracking
27+
- Works offline!
2728
- Saving and loading your dilber files from computer
2829
- MIDI out for your external or hardware synths
2930
- Share your code with others instantly
3031
- Custom toast messages when there is an error in the code
3132
- Soundfont support (Asprin, Chaos, GeneralUserGS, and JCLive)
32-
- Custom dilber-server support
33+
- Custom server support, check out [server script](resources/dilber-server.js)
3334
- Custom background via `bg(<url>)` command - check `backgrounds` tutorial in app
3435
- Sequence gifs via `bg.seq([image_array], [duration_array], random=true)`
3536
- Record your audio (system+mic) and video performance to .mp4 via `startSession()` and `stopSession()`
36-
- Autosave - in case of a crash it stores your code accross sessions. Default interval is set to 5 minutes. It can be turned off or customized.
37-
- Works offline
38-
- [Soon] Live performing with friends: P2P realtime collaboration with shared editor and chat over secure sockets
37+
- Autosave - in case of a crash it stores your code accross sessions. Default interval is set to 30 minutes. It can be turned off or customized.
38+
- Spectate mode - after creating a session in perform mode, a spectator link is copied to your clipboard. Paste it anyhere to invite people to spectate your performance live.
39+
- [Soon] P2P realtime collaboration with shared editor and chat over secure sockets
3940

4041

4142
## Where to start

index.html

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,8 @@
44
<meta charset='utf-8'>
55
<span class="camera">📹</span>
66
<title>Dilber | Live audio-visual coding in Javascript for the browser</title>
7-
<link rel="stylesheet" crossOrigin="anonymous" href="./resources/external/codemirror.css">
8-
<link rel="stylesheet" crossOrigin="anonymous" href="./resources/external/show-hint.css">
9-
<link rel="stylesheet" crossOrigin="anonymous" href="./resources/external/dialog.css">
10-
<link rel="stylesheet" crossOrigin="anonymous" href="./resources/external/tern.css">
11-
<link rel="stylesheet" crossOrigin="anonymous" href="./resources/dilber.css">
7+
<link rel="stylesheet" crossOrigin="anonymous" type="text/css" href="./resources/externals.css">
8+
<link rel="stylesheet" crossOrigin="anonymous" type="text/css" href="./resources/dilber.css">
129
<meta property="og:title" content="Dilber | Live audio-visual coding in the browser" />
1310
<meta property="og:type" content="website" />
1411
<meta property="og:url" content="https://dilber.io" />
@@ -21,8 +18,8 @@
2118
<header>
2219
<h1 id="logo" onclick="location.reload()">dilber</h1>
2320
<select id='examples'></select>
24-
<img id='themer' src='./resources/themes/noir.png'></img>
25-
<div id='thememenu'>
21+
<img id='theme' src='./resources/themes/noir.png'></img>
22+
<div id='themes'>
2623
<ul>
2724
<li><img src='./resources/themes/apollo.png' /></li>
2825
<li><img src='./resources/themes/battlestation.png' /></li>
@@ -45,7 +42,7 @@ <h1 id="logo" onclick="location.reload()">dilber</h1>
4542
<button id='restart'>restart</button>
4643
<button id='fullscreenbtn'>fullscreen</button>
4744
<button id='sharebtn'>share code</button>
48-
<button id='connectbtn'>collaborate</button>
45+
<button id='connectbtn'>perform</button>
4946
<button id='middibtn'>midi out</button>
5047
<select id='midiOutputSelect'>Device list:</select>
5148
<span id='reference'>
@@ -57,9 +54,7 @@ <h1 id="logo" onclick="location.reload()">dilber</h1>
5754
</ul>
5855
</span>
5956
</header>
60-
6157
<div id='editor' data-after=""></div></div>
62-
6358
<button id='hidebtn'>&#9650;</button>
6459
<canvas id='graphics'></canvas>
6560
<script src='./resources/dilber.js'></script>

resources/dilber.css

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@
99
--after-content: '';
1010
}
1111

12+
#spectatorCounter{
13+
14+
}
15+
16+
#specCount{
17+
18+
}
19+
1220
.markdown h1 {
1321
display:block;
1422
color:var(--f_high);
@@ -151,7 +159,7 @@ code {
151159
#sharebtn, #connect, #restart, #midiOutputSelect, #version { display:none }
152160
}
153161
@media only screen and (max-width: 400px) {
154-
#themer { display:none }
162+
#theme { display:none }
155163
header { padding-top:.55em }
156164
}
157165
@media only screen and (max-width: 335px) {
@@ -162,7 +170,7 @@ code {
162170
color: rgb(59, 59, 59) !important
163171
}
164172

165-
#themer {
173+
#theme {
166174

167175
height:1.5em;
168176

@@ -196,20 +204,20 @@ body {
196204
}
197205

198206

199-
#thememenu ul {
207+
#themes ul {
200208
list-style:none;
201209
padding:0;
202210
margin:0;
203211
}
204-
#thememenu {
212+
#themes {
205213
display:none;
206214
}
207-
#thememenu ul li {
215+
#themes ul li {
208216
margin-bottom: -4px
209217
}
210218

211219
.connect {
212-
margin:.5em;
220+
margin:.6em;
213221
font-family:monospace;
214222
width:14em;
215223
margin-right:1em;
@@ -262,7 +270,7 @@ label {
262270
#showChat, #useSharedEditorBox {
263271
display: 'inline-block';
264272
width:1em;
265-
margin-left:.5em;
273+
margin-left:.8em;
266274

267275
}
268276

0 commit comments

Comments
 (0)