31 lines
676 B
Lua
31 lines
676 B
Lua
require 'tablefuncs'
|
|
|
|
-- Global config table
|
|
---@class Config
|
|
---@field pointRadius number Radius of each grid point
|
|
---@field linePointRadius number Radius of line start/end point
|
|
---@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 = 7,
|
|
|
|
linePointRadius = 10,
|
|
|
|
cellSize = 30,
|
|
|
|
lineStyle = "smooth",
|
|
lineWidth = 5,
|
|
|
|
dragSensivity = 5
|
|
}
|
|
|
|
-- Colors table
|
|
---@enum Color
|
|
Color = {
|
|
white = { 1, 1, 1 },
|
|
red = { 1, 0, 0 },
|
|
green = { 0, 1, 0 },
|
|
blue = { 0, 0, 1 }
|
|
}
|