Skip to content

Latest commit

 

History

History
29 lines (24 loc) · 1.16 KB

README.md

File metadata and controls

29 lines (24 loc) · 1.16 KB

equationgrapher

A plugin for Lite XL that graphs y=x equations.

How to use

To use, open it through the command palette as you would with any other command. x is the plugin's independent variable. You can also use Lua's functions, but you need to wrap them inside parentheses and then call them, like

(function(x) --[[your code here]] end)(x)

Configuration

You can configure the grapher's settings through the user module:

local conf = config.plugins.equationgrapher
conf.point_size = 3 -- size of the grapher's dots
conf.steps = 10000 -- amount of steps that the equation takes to render
conf.background_color = style.background -- self explanatory
conf.cross_color = style.text -- color of the background's cross.
conf.graph_color = style.caret -- color of the graph.
conf.font = style.font -- yes

Screenshots

image image image