RLS Studios
ProjectsPatreonCommunityDocsAbout
Join Patreon
BeamNG Modding Docs

Guides

Reference

Server CommandsGE UtilitiesGame Engine MainNavigation GraphScreenshot CaptureServerServer ConnectionSpawnpoint ManagerSimulation TimeVehicle SpawningSuspension Frequency Tester
Editor AI TestsEditor AI VisualizationEditor – Assembly Spline ToolAsset BrowserAsset DeduplicatorAsset Management ToolSFX Previewer (Audio Events List)Audio Ribbon EditorAutoSaveBarriers EditorBiome ToolBuilding EditorBulk RenameCamera BookmarksCamera TransformCamera Path EditorCEF HelperCo-Simulation Signal EditorCrawl Data EditorCreate Object ToolDataBlock EditorDecal EditorDecal Spline EditorDocumentation HelperDrag Race EditorDrift Data EditorDrive Path EditorDynamic Decals Tool (Vehicle Livery Creator)Engine Audio DebugExtensions DebugExtensions EditorFFI Pointer Leak TestFile DialogFlowgraph EditorForest EditorForest ViewEditor Gizmo HelperEditor Ground Model Debug HelperEditor Headless Editor TestEditor Icon OverviewEditor ImGui C DemoEditor InspectorEditor Layout ManagerEditor Level SettingsEditor Level ValidatorEditor LoggerEditor Log HelperEditor MainEditor Main MenuEditor Main ToolbarEditor Main UpdateMap Sensor EditorMaster Spline EditorMaterial EditorMeasures Inspector HeaderMesh Editor (Base)Mesh Road EditorMesh Spline EditorMission EditorMission PlaybookMission Start Position EditorMulti Spawn Manager (Vehicle Groups)Navigation Mesh EditorEditor News MessageObject Tool (Object Select Edit Mode)Object To Spline EditorParticle EditorPerformance Profiler / Camera RecorderPhysics ReloaderPrefab Instance EditorEditor PreferencesRace / Path EditorRally EditorRaycast Test Editor ToolRenderer Components Editor ToolRender Test Editor ToolResource Checker Editor ToolRiver EditorRoad Architect EditorRoad DecorationsRoad Editor (Decal Road)Road Network ExporterRoad River Cache HandlerRoad River GUIRoad Spline EditorRoad Template EditorRoad UtilitiesScene TreeScene ViewScreenshot Creator BootstrapScript AI EditorScript AI ManagerSensor Configuration EditorSensor DebuggerShape EditorShortcut LegendSidewalk Spline EditorSites EditorSlot Traffic EditorSuspension Audio DebugTech Server ManagerTerraform ToolTerrain And Road ImporterTerrain EditorTerrain Materials EditorText EditorTool ManagerTool ShortcutsTraffic DebugTraffic ManagerTraffic Signals EditorUndo History ViewerVehicle Bridge TestVehicle Detail ViewerVehicle Editor MainEditor - VisualizationEditor Viz HelperEditor Water Object HelperEditor Windows Manager
Tool Utilities - Fit PolylineEditor Tool Utilities – GeometryEditor Tool Utilities – GizmoEditor Tool Utilities – Material Selection ManagerEditor Tool Utilities – Mesh Audition ManagerEditor Tool Utilities – Perlin NoiseEditor Tool Utilities – Polygon DrawingEditor Tool Utilities – Ramer-Douglas-PeuckerEditor RenderingEditor Tool Utilities – Ribbon InputEditor Tool Utilities – Riverbed TerraformingEditor Tool Utilities – Road Design StandardsEditor Tool Utilities – Simplex NoiseEditor Tool Utilities – Skeleton (Image Vectorisation)Editor Tool Utilities – Spline InputEditor Tool Utilities – Spline Mask ExportEditor Tool Utilities – StyleEditor Tool Utilities – Terrain PainterEditor Tool Utilities – Util

UI

Resources

BeamNG Game Engine Lua Cheat SheetGE Developer RecipesMCP Server Setup

// RLS.STUDIOS=true

Premium Mods for BeamNG.drive. Career systems, custom vehicles, and immersive gameplay experiences.

Index

HomeProjectsPatreon

Socials

DiscordPatreon (RLS)Patreon (Vehicles)

© 2026 RLS Studios. All rights reserved.

Modding since 2024

API ReferenceGE ExtensionseditortoolUtilities

Editor Tool Utilities – Style

Centralised style configuration for spline-editing tools. Provides debug-draw colours, line thicknesses, sphere scales, pulse animation parameters, and ImGui colour theme palettes.

Centralised style configuration for spline-editing tools. Provides debug-draw colours, line thicknesses, sphere scales, pulse animation parameters, and ImGui colour theme palettes.


Public API

FunctionSignatureDescription
M.getStyle() → tableReturns the debug-draw style table with all rendering parameters
M.getImguiCols(theme) → tableReturns an ImGui colour palette for the given theme name

Style Properties (key categories)

CategoryExamplesDescription
ColourscolourNode, colourSpline, colourHighlight, colourRibGlowDebug-draw RGBA colour objects
Line ThicknessessplineThickness, wireThickness, ribThickness, dropThicknessPixel widths for debug lines
Sphere ScalessphereNode, sphereRib, sphereBar, sphereMousePosDistance-adaptive scale factors
Glow ScalesnodeGlowScale, ribGlowScale, barGlowScaleAdditional size for glow passes
Pulse AnimationhighlightPulseHz, highlightScaleMin/Max, loopPulseHzSine-wave pulse parameters

Available Themes

blueRose, vapourStatic, canyonClay, terminalAurora, summerOfLove, deerPark, dreamMachine, headlights, crystal (default), neoIndustrial


Code Examples

local styleCore = require('editor/toolUtilities/style')

-- Get the debug-draw style for rendering
local style = styleCore.getStyle()
debugDraw.drawSphere(pos, 0.5, style.colourNode)
debugDraw.drawLineInstance_MinArg(p0, p1, style.splineThickness, style.colourSpline)

-- Get ImGui colours for a theme
local cols = styleCore.getImguiCols('crystal')
im.TextColored(cols.greenB, 'Active Spline')
im.TextColored(cols.blueB, 'Selected Layer')
im.TextColored(cols.redB, 'Error State')

-- Theme palette structure:
-- cols.fullWhite  - bright text/elements
-- cols.dullWhite  - dimmed text/elements
-- cols.purpleB    - accent colour
-- cols.greenB/D   - primary bright/dark
-- cols.blueB/D    - secondary bright/dark
-- cols.redB       - warning/error
-- cols.yellowB    - highlight

See Also

  • Tool Utilities - Fit Polyline - Related reference
  • Editor Tool Utilities – Geometry - Related reference
  • Editor Tool Utilities – Gizmo - Related reference
  • World Editor Guide - Guide

Editor Tool Utilities – Spline Mask Export

Exports spline ribbon surfaces as a binary PNG mask file (GFXFormatR16) covering the full terrain extent. Uses kd-tree spatial queries and barycentric quad intersection for efficient rasterisation.

Editor Tool Utilities – Terrain Painter

Paints terrain materials underneath a spline by rasterising the spline polygon to the terrain grid. Supports revertable operations with stored undo data.

On this page

Public APIStyle Properties (key categories)Available ThemesCode ExamplesSee Also