Structures - AlsoGhostglowDev/Ghost-s-Utilities GitHub Wiki
This documentation lists the custom table structures that exists within GhostUtil that are used in some module's methods or exists as a module's field.
{
?type:String|Int,
?startDelay:Float,
?loopDelay:Float,
?ease:String,
?onUpdate:String,
?onStart:String,
?onComplete:String
}The tween options used for tweening functions like
startTween.
{
// ranges from 0 to 1
alpha:Int,
// all of these ranges from 0 to 255
red:Int,
green:Int,
blue:Int
}An object storing values of each respective color channels. Found returned from
color.extractChannels.
(fromghostutil.color)
─────────────────────────
{
SINE = math.sin,
COSINE = math.cos,
TAN = math.tan,
LOG = math.log10,
-- to be edited by users
CUSTOM = math.sin
}The common modchart functions used for the certain modifiers.
(fromghostutil.modchart)
─────────────────────────
{
UPSCROLL = 'up',
DOWNSCROLL = 'down'
}Used to determine the current strum's scroll type.
(fromghostutil.modchart)
─────────────────────────
{
x:Float|Dynamic,
y:Float|Dynamic
}Used to either determine a point from the two-dimensional axis or get the appropriate property for the corresponding axis.
(fromghostutil.modchart)
─────────────────────────
{
enabled:Bool,
frequency:Point,
phase:Point,
magnitude:Point,
offset:Point,
func:Point
}Used to store the attributes of the wiggle modifier for modcharts.
(fromghostutil.modchart)
─────────────────────────
{
enabled:Bool,
magnitude:Point,
func:Point
}Used to store the attributes of the shake modifier for modcharts.
(fromghostutil.modchart)
─────────────────────────
HiddenMod & SuddenMod:
{
enabled:Bool,
startStep:Int,
startAlpha:Float,
endAlpha:Float
}Used to store the attributes of the hidden/sudden modifier for modcharts.
(fromghostutil.modchart)
─────────────────────────
{
enabled:Bool,
startStep:Int,
speed:Float
}Used to store the attributes of the boost/brake modifier for modcharts.
(fromghostutil.modchart)
─────────────────────────
{
enabled:Bool,
scroll:ScrollType,
position:Point,
offset:Point,
wiggleMod:WiggleMod,
shakeMod:ShakeMod,
hiddenMod:HiddenMod,
suddenMod:SuddenMod,
boostMod:BoostMod,
brakeMod:BrakeMod,
direction:Float,
speed:Float
}Used to store the attributes of the strum's modifiers for modcharts.
(fromghostutil.modchart)
─────────────────────────
{
index: number,
mod: string,
?axis: string
} Contains the data for a modifier tween. (from
ghostutil.modchart)
─────────────────────────
{
index: number,
downscroll: boolean
} Contains the data for a modchart scroll tween. (from
ghostutil.modchart)
─────────────────────────
{
?x:Float = 0,
?y:Float = 0,
?width:Int = 256,
?height:Int = 256,
?title:String = 'New Window',
?resizable:Bool = true,
?minimized:Bool = false,
?maximized:Bool = false,
?fullscreen:Bool = false,
?borderless:Bool = false,
?alwaysOnTop:Bool = false
}Contains attributes for creating a window. All fields are optional.
(fromghostutil.window)
GhostUtil 3.0.0 • Docs 3.0.0, Revision 1
a Lua Library made by GhostglowDev; for Psych Engine
© 2025 GhostglowDev — Ghost's Utilities
Licensed under the MIT License.