lines-lua/config.lua
2025-07-03 15:11:46 +03:00

31 lines
726 B
Lua

require 'tablefuncs'
-- Global config table
---@class Config
---@field pointRadius number Radius of each grid point, relative to cellSize
---@field linePointRadius number Radius of line start/end points, relative to cellSize
---@field cellSize number Size of each grid cell
---@field lineStyle string love2d line style setting
---@field lineWidth number love2d line width setting
---@field dragSensivity number drag sensivity, px
Config = {
pointRadius = 0.3,
linePointRadius = 0.4,
cellSize = 30,
lineStyle = "smooth",
lineWidth = 0.1,
dragSensivity = 5
}
-- Colors table
---@enum Color
Color = {
white = { 1, 1, 1 },
red = { 1, 0, 0 },
green = { 0, 1, 0 },
blue = { 0, 0, 1 }
}