Skip to content

Easing previewer for Lite XL. Currently only works with Lua.

License

Notifications You must be signed in to change notification settings

thacuber2a03/lite-xl-easingpreview

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

lite-xl-easingpreview

Easing previewer for Lite XL. Currently only works with Lua.

How to use

Run easing-preview:show (this one mapped to ctrl+shift+e by default) over the signature of a Penner easing function:

function linear(t, b, c, d) -- execute here
  return c * t / d + b
end

Click anywhere else (or run easing-preview:hide (mapped to ctrl+alt+e)) to hide the prompt.

Config

local easing_previewer = config.plugins.easing_previewer
easing_previewer.displayWidth = 150
easing_previewer.displayHeight = 100

easing_previewer.arrowWidth = 0.2 -- normalized
easing_previewer.arrowHeight = 0.2 -- normalized (based on height of the display (should probably change that))

easing_previewer.pointSize = 5
easing_previewer.steps = 100 -- resolution of the graph
easing_previewer.padding = 10

There's also a config spec, in case you use settings.

About

Easing previewer for Lite XL. Currently only works with Lua.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages