Experiments in using Lua with sol2 and how best to structure the data. Contains a shoot out of SOA, vs AOS vs. MOA. SOA = Struct of Arrays AOS = Array of Structs MOA = Many Array of Structs (kind of a hybrid)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
sol2_test/lua/builder_test.lua

78 lines
1.2 KiB

require "lua/bezos_builder"
config{
title="How to Mic Your Keyboard",
description="Make your programming streams sweet",
layouts="assets/layouts.json",
font_color=rgba{255, 0, 0, 255},
}
slide{
h1 "Here's Mine",
image{
src="test.jpg"
}
}
slide{
layout="no_title",
font_size=200,
font_color=rgba{100, 100, 50, 100},
t {
font_color=rgba{255, 0, 0, 255},
"How to"
},
t "Mic Your",
t "Keyboard",
}
slide{
h1 "Why Keyboard Mic",
t [[
Makes programming content
more interesting.
]]
}
slide{
h1 "Requirements",
ul "A Piezo Mic",
ul "Extra Audio Input",
ul "Expander or Gate",
}
slide{
h1 "1. Piezo Mic",
ul "$9USD for 4",
ul "Usually for acoustic guitars",
ul "Don't get Expensive",
}
slide{
h1 "Attach the Mic",
ul "It works on Vibration",
ul "Stick it to the housing.",
ul "No need for phantom power.",
}
slide{
layout="no_title",
font_size=150,
bg_color=rgba{238, 44, 44, 255},
font_color=rgba{255, 255, 255, 255},
t [[
Secrity
Warning!!
]]
}
slide{
h1 "Supported Markdown",
ul "Simple lists with *",
ul "Images with !(file)",
t [[
Spaces or Newlines
Bare content
]]
}