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/test.lua

77 lines
1.2 KiB

require "lua/bezos"
config{
title="How to Mic Your Keyboard",
description="Make your programming streams sweet",
layouts="assets/layouts.json",
}
slide{
layout="no_title",
t {
font_color="red",
"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{
-- h1 "Here's Mine",
-- image{
-- src="p100101.jpg"
-- }
-- }
--
-- slide{
-- layout="no_title",
-- font_size=150,
-- bg_color={238, 44, 44, 255},
-- font_color={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
-- ]]
-- }
--
-- print(pprint(DECK))