space advances slides
authorBrendan Hansen <brendan.f.hansen@gmail.com>
Sat, 20 Feb 2021 17:14:40 +0000 (11:14 -0600)
committerBrendan Hansen <brendan.f.hansen@gmail.com>
Sat, 20 Feb 2021 17:14:40 +0000 (11:14 -0600)
dist/prez.wasm
onyx.prez
src/prez.onyx

index dd262a3d54c03ef2263813641b85acfdcb2da7b3..d91e272e8a0b3c1ded2008e051385c8383bd33d6 100644 (file)
Binary files a/dist/prez.wasm and b/dist/prez.wasm differ
index 4901fbacbb420edd34be3bc17c97b7c113927aa7..b4531cad4414cfc2f72b13fb4cd0efafec7500ad 100644 (file)
--- a/onyx.prez
+++ b/onyx.prez
@@ -1,21 +1,26 @@
 [aspect_ratio 16 9]
 
-[var tbright 236]
-[var bbright 20]
+[var text_r 236]
+[var text_g 236]
+[var text_b 236]
 
-[define_text_style normal color   $tbright $tbright $tbright font_size 40 font_name "Arial" left padding 10]
-[define_text_style title color    $tbright $tbright $tbright font_attr bold font_size 72 font_name "Arial" centered]
-[define_text_style subtitle color $tbright $tbright $tbright font_attr italic font_size 72 font_name "Arial" centered]
-[define_text_style header color   $tbright $tbright $tbright font_attr bold font_size 72 font_name "Arial" left padding 10]
+[var back_r 20]
+[var back_g 20]
+[var back_b 40]
+
+[define_text_style normal color   $text_r $text_g $text_b font_size 40 font_name "Arial" left padding 10]
+[define_text_style title color    $text_r $text_g $text_b font_attr bold font_size 72 font_name "Arial" centered]
+[define_text_style subtitle color $text_r $text_g $text_b font_attr italic font_size 72 font_name "Arial" centered]
+[define_text_style header color   $text_r $text_g $text_b font_attr bold font_size 72 font_name "Arial" left padding 10]
 
 [define_text_style hyperlink color 100 100 255 font_attr italic font_size 40 font_name "Arial" left padding 10]
-[define_text_style code color $tbright $tbright $tbright font_size 40 font_name "monospace" left padding 20]
+[define_text_style code color 255 255 255 font_size 40 font_name "monospace" left padding 20]
 
 [load_image onyx_example "https://brendanfh.com/files/onyx_prez/onyx_example.png"]
 [load_image wasm_logo "https://webassembly.org/css/webassembly.svg"]
 
 # ---------------------------------------------
-[slide] [background $bbright $bbright $bbright]
+[slide] [background $back_r $back_g $back_b]
 [animation fade]
 
 [rect color 40 40 40 x 0 w 100 y 35 h 30]
index 6c5bf14fa6fba6c22823cd291e197ddda85b7ef1..feea310e4078f7a2aa0857c403699320ccdf88fe 100644 (file)
@@ -30,6 +30,7 @@ poll_events :: () {
 
             case KeyDown {
                 switch ev.keyboard.keycode {
+                    case 0x20 do slideshow_advance_slide(^the_slideshow, 1);
                     case 0x25 do slideshow_advance_slide(^the_slideshow, -1);
                     case 0x27 do slideshow_advance_slide(^the_slideshow, 1);
                 }