Skip to content

Commit

Permalink
add r() and tune greyscale option
Browse files Browse the repository at this point in the history
  • Loading branch information
tyleretters committed Aug 21, 2021
1 parent 48c6da6 commit b07d89e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions lib/functions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,10 @@ function rerun()
norns.script.load(norns.state.script)
end

function r()
rerun()
end

function fn.screenshot()
local which_screen = string.match(string.match(string.match(norns.state.script,"/home/we/dust/code/(.*)"),"/(.*)"),"(.+).lua")
_norns.screen_export_png("/home/we/dust/" .. which_screen .. "-" .. os.time() .. ".png")
Expand Down
4 changes: 2 additions & 2 deletions lib/parameters.lua
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ function parameters.init()
params:set_action("splash_screen", function(index) parameters.is_splash_screen_on = index == 1 and true or false end)

parameters.is_grayscale_on = false
params:add_option("grayscale", "GRAYSCALE", {"ENABLED", "DISABLED"})
params:set_action("grayscale", function(index) parameters.is_grayscale_on = index == 1 and true or false end)
params:add_option("grayscale", "GRAYSCALE", {"DISABLED", "ENABLED"})
params:set_action("grayscale", function(index) parameters.is_grayscale_on = index == 2 and true or false end)

params:add_separator("")
params:add_separator("KUDZU MANAGEMENT")
Expand Down

0 comments on commit b07d89e

Please sign in to comment.