repo
stringclasses
350 values
file_path
stringlengths
29
200
language
stringclasses
2 values
file_type
stringclasses
4 values
code
stringlengths
2
1.01M
tokens
int64
2
598k
ratplier/jello
ratplier-jello-d8c36ea/src/utils/input.luau
luau
.luau
local UserInputService = game:GetService("UserInputService") local root = require("./rootkit") local paint = require("./paint") local ui = require("./uikit") local config = require("../config") local row = require("../widgets/format/row") type source<T> = root.source<T> type value<T> = root.value<T> export type Dat...
4,626
ratplier/jello
ratplier-jello-d8c36ea/src/utils/paint.luau
luau
.luau
local ui = require("./uikit") local root = require("./rootkit") local config = require("../config") local color4 = require("./color4") type source<T> = root.source<T> type value<T> = source<T> | T local colors = config.colors local read = root.read local paint = {} function paint.text(active: value<boolean>?) a...
1,009
ratplier/jello
ratplier-jello-d8c36ea/src/utils/rootkit.luau
luau
.luau
local UserInputService = game:GetService("UserInputService") local internal = require("../internal") export type source<T> = internal.source<T> export type value<T> = T | source<T> export type props = internal.props type function _partial(object: type) local tag = object.tag if tag == "union" or tag == "intersect...
1,449
ratplier/jello
ratplier-jello-d8c36ea/src/utils/uikit.luau
luau
.luau
local UserInputService = game:GetService("UserInputService") local Players = game:GetService("Players") local GuiService = game:GetService("GuiService") local internal = require("../internal") local root = require("./rootkit") local color4 = require("./color4") type source<T> = internal.source<T> type value<T> = sour...
1,564
ratplier/jello
ratplier-jello-d8c36ea/src/widgets/button.luau
luau
.luau
local config = require("../config") local root = require("../utils/rootkit") local ui = require("../utils/uikit") local paint = require("../utils/paint") type source<T> = root.source<T> type partial<T> = root.partial<T> export type state = { clicked: source<boolean>, right_clicked: source<boolean>, middle_clicked:...
415
ratplier/jello
ratplier-jello-d8c36ea/src/widgets/checkbox.luau
luau
.luau
local config = require("../config") local root = require("../utils/rootkit") local ui = require("../utils/uikit") local paint = require("../utils/paint") local row = require("./format/row") local text = require("./text") local assets = config.assets type source<T> = root.source<T> type partial<T> = root.partial<T> ...
393
ratplier/jello
ratplier-jello-d8c36ea/src/widgets/datatypes/color3.luau
luau
.luau
local config = require("../../config") local input = require("../../utils/input") local root = require("../../utils/rootkit") local ui = require("../../utils/uikit") type source<T> = root.source<T> type value<T> = root.value<T> type partial<T> = root.partial<T> export type state = { value: source<Color3>, hov...
368
ratplier/jello
ratplier-jello-d8c36ea/src/widgets/datatypes/number.luau
luau
.luau
local input = require("../../utils/input") local root = require("../../utils/rootkit") local ui = require("../../utils/uikit") type source<T> = root.source<T> type value<T> = root.value<T> type partial<T> = root.partial<T> export type state = { value: source<number>, hovered: source<boolean>, changed: sou...
360
ratplier/jello
ratplier-jello-d8c36ea/src/widgets/datatypes/rect.luau
luau
.luau
local config = require("../../config") local input = require("../../utils/input") local root = require("../../utils/rootkit") local ui = require("../../utils/uikit") type source<T> = root.source<T> type value<T> = root.value<T> type partial<T> = root.partial<T> export type state = { value: source<Rect>, hover...
342
ratplier/jello
ratplier-jello-d8c36ea/src/widgets/datatypes/udim.luau
luau
.luau
local config = require("../../config") local input = require("../../utils/input") local root = require("../../utils/rootkit") local ui = require("../../utils/uikit") type source<T> = root.source<T> type value<T> = root.value<T> type partial<T> = root.partial<T> export type state = { value: source<UDim>, hover...
331
ratplier/jello
ratplier-jello-d8c36ea/src/widgets/datatypes/udim2.luau
luau
.luau
local config = require("../../config") local input = require("../../utils/input") local root = require("../../utils/rootkit") local ui = require("../../utils/uikit") type source<T> = root.source<T> type value<T> = root.value<T> type partial<T> = root.partial<T> export type state = { value: source<UDim2>, hove...
343
ratplier/jello
ratplier-jello-d8c36ea/src/widgets/datatypes/vector2.luau
luau
.luau
local config = require("../../config") local input = require("../../utils/input") local root = require("../../utils/rootkit") local ui = require("../../utils/uikit") type source<T> = root.source<T> type value<T> = root.value<T> type partial<T> = root.partial<T> export type state = { value: source<Vector2>, ho...
324
ratplier/jello
ratplier-jello-d8c36ea/src/widgets/datatypes/vector3.luau
luau
.luau
local config = require("../../config") local input = require("../../utils/input") local root = require("../../utils/rootkit") local ui = require("../../utils/uikit") type source<T> = root.source<T> type value<T> = root.value<T> type partial<T> = root.partial<T> export type state = { value: source<Vector3 | vector...
329
ratplier/jello
ratplier-jello-d8c36ea/src/widgets/dropdown.luau
luau
.luau
local config = require("../config") local root = require("../utils/rootkit") local ui = require("../utils/uikit") local paint = require("../utils/paint") local row = require("./format/row") local text = require("./text") local assets = config.assets type source<T> = root.source<T> type value<T> = root.value<T> type p...
735
ratplier/jello
ratplier-jello-d8c36ea/src/widgets/format/group.luau
luau
.luau
local config = require("../../config") local root = require("../../utils/rootkit") local ui = require("../../utils/uikit") type source<T> = root.source<T> type partial<T> = root.partial<T> export type arguments = { align: "Left" | "Center" | "Right", padding: number, } return ui.widget("group", function(arguments:...
205
ratplier/jello
ratplier-jello-d8c36ea/src/widgets/format/header.luau
luau
.luau
local config = require("../../config") local root = require("../../utils/rootkit") local ui = require("../../utils/uikit") local paint = require("../../utils/paint") local assets = config.assets type source<T> = root.source<T> type partial<T> = root.partial<T> export type state = { open: source<boolean>, clicke...
574
ratplier/jello
ratplier-jello-d8c36ea/src/widgets/format/indent.luau
luau
.luau
local config = require("../../config") local root = require("../../utils/rootkit") local ui = require("../../utils/uikit") type source<T> = root.source<T> type partial<T> = root.partial<T> export type arguments = { indent: number, padding: number, } return ui.widget("indent", function(arguments: root.partial...
186
ratplier/jello
ratplier-jello-d8c36ea/src/widgets/format/row.luau
luau
.luau
local config = require("../../config") local root = require("../../utils/rootkit") local ui = require("../../utils/uikit") type source<T> = root.source<T> type partial<T> = root.partial<T> export type arguments = { height: number, padding: number, fixed_size: boolean, } return ui.widget("row", function(arguments:...
211
ratplier/jello
ratplier-jello-d8c36ea/src/widgets/format/section.luau
luau
.luau
local config = require("../../config") local root = require("../../utils/rootkit") local ui = require("../../utils/uikit") local paint = require("../../utils/paint") local assets = config.assets type source<T> = root.source<T> type partial<T> = root.partial<T> export type state = { open: source<boolean>, clicke...
587
ratplier/jello
ratplier-jello-d8c36ea/src/widgets/format/seperator.luau
luau
.luau
local root = require("../../utils/rootkit") local ui = require("../../utils/uikit") local paint = require("../../utils/paint") type partial<T> = root.partial<T> type source<T> = root.source<T> export type arguments = { text: string? } return ui.widget("seperator", function(arguments: partial<arguments>?) local args...
363
ratplier/jello
ratplier-jello-d8c36ea/src/widgets/image.luau
luau
.luau
local config = require("../config") local root = require("../utils/rootkit") local ui = require("../utils/uikit") local paint = require("../utils/paint") local assets = config.assets type source<T> = root.source<T> type partial<T> = root.partial<T> export type state = { hovered: source<boolean>, } export type argum...
430
ratplier/jello
ratplier-jello-d8c36ea/src/widgets/imagebutton.luau
luau
.luau
local config = require("../config") local root = require("../utils/rootkit") local ui = require("../utils/uikit") local paint = require("../utils/paint") local assets = config.assets type source<T> = root.source<T> type partial<T> = root.partial<T> export type state = { clicked: source<boolean>, right_clicked: sou...
651
ratplier/jello
ratplier-jello-d8c36ea/src/widgets/menu/menu.luau
luau
.luau
local config = require("../../config") local root = require("../../utils/rootkit") local ui = require("../../utils/uikit") local paint = require("../../utils/paint") type source<T> = root.source<T> type partial<T> = root.partial<T> export type state = { opened: source<boolean>, hovered: source<boolean>, clicked: s...
791
ratplier/jello
ratplier-jello-d8c36ea/src/widgets/menu/menubar.luau
luau
.luau
local config = require("../../config") local root = require("../../utils/rootkit") local ui = require("../../utils/uikit") local paint = require("../../utils/paint") type source<T> = root.source<T> type partial<T> = root.partial<T> return ui.widget("menubar", function() local menubar = root.create("Frame") { ...
144
ratplier/jello
ratplier-jello-d8c36ea/src/widgets/menu/menuitem.luau
luau
.luau
local config = require("../../config") local root = require("../../utils/rootkit") local ui = require("../../utils/uikit") local paint = require("../../utils/paint") type source<T> = root.source<T> type partial<T> = root.partial<T> export type state = { clicked: source<boolean>, hovered: source<boolean>, } r...
241
ratplier/jello
ratplier-jello-d8c36ea/src/widgets/option.luau
luau
.luau
local config = require("../config") local root = require("../utils/rootkit") local ui = require("../utils/uikit") local paint = require("../utils/paint") type source<T> = root.source<T> type partial<T> = root.partial<T> export type state = { hovered: source<boolean>, selected: source<boolean>, clicked: source<bool...
287
ratplier/jello
ratplier-jello-d8c36ea/src/widgets/radiobutton.luau
luau
.luau
local config = require("../config") local root = require("../utils/rootkit") local ui = require("../utils/uikit") local paint = require("../utils/paint") local text = require("./text") type source<T> = root.source<T> type partial<T> = root.partial<T> export type state = { hovered: source<boolean>, selected: sou...
430
ratplier/jello
ratplier-jello-d8c36ea/src/widgets/text.luau
luau
.luau
local root = require("../utils/rootkit") local ui = require("../utils/uikit") local paint = require("../utils/paint") type source<T> = root.source<T> type partial<T> = root.partial<T> export type state = { hovered: source<boolean>, } export type arguments = { text: string?, richText: boolean?, color: Color3?, wr...
279
ratplier/jello
ratplier-jello-d8c36ea/src/widgets/textinput.luau
luau
.luau
local config = require("../config") local root = require("../utils/rootkit") local ui = require("../utils/uikit") local paint = require("../utils/paint") type source<T> = root.source<T> type partial<T> = root.partial<T> export type state = { text_changed: source<boolean>, focused: source<boolean>, hovered: source<...
423
ratplier/jello
ratplier-jello-d8c36ea/src/widgets/tooltip.luau
luau
.luau
local config = require("../config") local root = require("../utils/rootkit") local ui = require("../utils/uikit") local paint = require("../utils/paint") local TOOLTIP_OFFSET = vector.create(10, 15) type source<T> = root.source<T> type partial<T> = root.partial<T> export type state = { active: source<boolean>, ...
339
ratplier/jello
ratplier-jello-d8c36ea/src/widgets/window.luau
luau
.luau
local UserInputService = game:GetService("UserInputService") local config = require("../config") local root = require("../utils/rootkit") local ui = require("../utils/uikit") local paint = require("../utils/paint") local extern_menubar = require("./menu/menubar") local START_POSITION = vector.create(200, 200) local D...
2,290
sircfenner/AutoImport
sircfenner-AutoImport-eb2bbf3/.config.luau
luau
.luau
return { luau = { languagemode = "strict", }, }
19
sircfenner/AutoImport
sircfenner-AutoImport-eb2bbf3/src/ModulesWatcher.luau
luau
.luau
local targetRoots: { Instance } = { game:GetService("Workspace"), game:GetService("ReplicatedFirst"), game:GetService("ReplicatedStorage"), game:GetService("ServerScriptService"), game:GetService("ServerStorage"), game:GetService("StarterGui"), game:GetService("StarterPack"), game:GetService("StarterPlayer"), }...
727
vantoanvh/LuauNES
vantoanvh-LuauNES-2047057/LuauNES/APU.luau
luau
.luau
--!native --!nocheck --!optimize 2 local ASSETS = { pulse_12_5 = 'rbxassetid://137987182789405', pulse_25 = 'rbxassetid://108267815293395', pulse_50 = 'rbxassetid://74193770330344', pulse_75 = 'rbxassetid://100273244108902', triangle = 'rbxassetid://135072236414372', noise_mix = 'rbxassetid://137650960613979', }...
16,585
vantoanvh/LuauNES
vantoanvh-LuauNES-2047057/LuauNES/Mappers/Base.luau
luau
.luau
--!native --!optimize 2 --!strict export type MapperConfig = { id: number, fourScreen: boolean, initialMirroring: number, prgBanks16: number, chrBanks8: number, prgSize: number, chrSize: number, chrIsRam: boolean, prgRamSize: number, hasBattery: boolean, submapper: number?, prgRam: buffer?, chr: buffer?, ...
269
vantoanvh/LuauNES
vantoanvh-LuauNES-2047057/LuauNES/Mappers/Homebrew.luau
luau
.luau
--!optimize 2 --!native --!strict local Base = require'./Base' type MapperConfig = Base.MapperConfig local atLeastOne = Base.atLeastOne local wrapBank = Base.wrapBank --// MAPPER_030 const function UNROM512(config: MapperConfig) local prg_banks_16k = atLeastOne(config.prgSize // 0x4000) local chr_banks_8k = atLea...
747
vantoanvh/LuauNES
vantoanvh-LuauNES-2047057/LuauNES/Mappers/Konami.luau
luau
.luau
--!optimize 2 --!native --!strict local Base = require'./Base' type MapperConfig = Base.MapperConfig local atLeastOne = Base.atLeastOne local wrapBank = Base.wrapBank local normalizeOffset = Base.normalizeOffset type VrcIrqState = { reloadValue: number, counter: number, prescaler: number, enabled: boolean, ena...
12,102
vantoanvh/LuauNES
vantoanvh-LuauNES-2047057/LuauNES/Mappers/Namco.luau
luau
.luau
--!optimize 2 --!native --!strict local Base = require'./Base' type MapperConfig = Base.MapperConfig local atLeastOne = Base.atLeastOne local normalizeOffset = Base.normalizeOffset local wrapBank = Base.wrapBank const function read_buffer_u8(buf: buffer?, len: number, offset: number): number if buf ~= nil and offs...
7,000
vantoanvh/LuauNES
vantoanvh-LuauNES-2047057/LuauNES/Mappers/Nintendo.luau
luau
.luau
--!optimize 2 --!native --!strict local Base = require'./Base' type MapperConfig = Base.MapperConfig local atLeastOne = Base.atLeastOne local wrapBank = Base.wrapBank local normalizeOffset = Base.normalizeOffset --// MAPPER_000 const function NROM(config: MapperConfig) local prg_banks_16k = atLeastOne(config.prgSi...
25,249
vantoanvh/LuauNES
vantoanvh-LuauNES-2047057/LuauNES/Mappers/Sunsoft.luau
luau
.luau
--!optimize 2 --!native --!strict local Base = require'./Base' type MapperConfig = Base.MapperConfig local atLeastOne = Base.atLeastOne local wrapBank = Base.wrapBank local normalizeOffset = Base.normalizeOffset const function read_buffer_u8(buf: buffer?, len: number, offset: number): number if buf ~= nil and offs...
8,043
vantoanvh/LuauNES
vantoanvh-LuauNES-2047057/LuauNES/Mappers/Unlicensed.luau
luau
.luau
--!optimize 2 --!native --!strict local Base = require'./Base' type MapperConfig = Base.MapperConfig local atLeastOne = Base.atLeastOne local wrapBank = Base.wrapBank local normalizeOffset = Base.normalizeOffset --// MAPPER_116 const function Huang116(config: MapperConfig) local submapper = config.submapper or 0 ...
9,226
vantoanvh/LuauNES
vantoanvh-LuauNES-2047057/LuauNES/Mappers/init.luau
luau
.luau
--!native --!optimize 2 --!strict local Base = require'@self/Base' local Namco = require'@self/Namco' local Konami = require'@self/Konami' local Sunsoft = require'@self/Sunsoft' local Homebrew = require'@self/Homebrew' local Nintendo = require'@self/Nintendo' local Unlicensed = require'@self/Unlicensed' export type M...
622
vantoanvh/LuauNES
vantoanvh-LuauNES-2047057/LuauNES/init.luau
luau
.luau
--!native --!nocheck --!optimize 2 --// Modules const Mappers = require("@self/Mappers") --// Buffers and data local palette_rgba32 = buffer.create(256) local nes_rgba32 = buffer.create(256) local SPRITE_NORMAL_PIXEL = buffer.create(524288) local SPRITE_FLIP_PIXEL = buffer.create(524288) local prg...
34,383
MiaGobble/ExpressivePrompts
MiaGobble-ExpressivePrompts-eec74ea/src/NewInputConnections.luau
luau
.luau
-- Types type Properties = { prompt: ProximityPrompt, ButtonHeldDown: any, CurrentBarSize: any, CurrentFrameScaleFactor: any, PromptTransparency: any, InputFrameScaleFactor: any, } -- Services local RunService = game:GetService("RunService") local SoundService = game:GetService("SoundService") ...
731
MiaGobble/ExpressivePrompts
MiaGobble-ExpressivePrompts-eec74ea/src/NewInputLabel/Gamepad/GamepadButtonImage.luau
luau
.luau
return { [Enum.KeyCode.ButtonX] = "rbxasset://textures/ui/Controls/xboxX.png", [Enum.KeyCode.ButtonY] = "rbxasset://textures/ui/Controls/xboxY.png", [Enum.KeyCode.ButtonA] = "rbxasset://textures/ui/Controls/xboxA.png", [Enum.KeyCode.ButtonB] = "rbxasset://textures/ui/Controls/xboxB.png", [Enum.KeyCode.DPadLeft] = ...
417
MiaGobble/ExpressivePrompts
MiaGobble-ExpressivePrompts-eec74ea/src/NewInputLabel/Gamepad/init.luau
luau
.luau
-- Constants local GAMEPAD_BUTTON_IMAGE = require(script.GamepadButtonImage) return function(Scope : any, prompt, Config : {}) if not GAMEPAD_BUTTON_IMAGE[prompt.GamepadKeyCode] then return end return { Scope:New("ImageLabel", { Name = "ButtonImage", AnchorPoint = V...
160
MiaGobble/ExpressivePrompts
MiaGobble-ExpressivePrompts-eec74ea/src/NewInputLabel/Keyboard/KeyCodeToTextMapping.luau
luau
.luau
return { [Enum.KeyCode.LeftControl] = "Ctrl", [Enum.KeyCode.RightControl] = "Ctrl", [Enum.KeyCode.LeftAlt] = "Alt", [Enum.KeyCode.RightAlt] = "Alt", [Enum.KeyCode.F1] = "F1", [Enum.KeyCode.F2] = "F2", [Enum.KeyCode.F3] = "F3", [Enum.KeyCode.F4] = "F4", [Enum.KeyCode.F5] = "F5", [Enum.KeyCode.F6] = "F6", [Enu...
191
MiaGobble/ExpressivePrompts
MiaGobble-ExpressivePrompts-eec74ea/src/NewInputLabel/Keyboard/KeyboardButtonIconMapping.luau
luau
.luau
return { ["'"] = "rbxasset://textures/ui/Controls/apostrophe.png", [","] = "rbxasset://textures/ui/Controls/comma.png", ["`"] = "rbxasset://textures/ui/Controls/graveaccent.png", ["."] = "rbxasset://textures/ui/Controls/period.png", [" "] = "rbxasset://textures/ui/Controls/spacebar.png", }
94
MiaGobble/ExpressivePrompts
MiaGobble-ExpressivePrompts-eec74ea/src/NewInputLabel/Keyboard/KeyboardButtonImage.luau
luau
.luau
return { [Enum.KeyCode.Backspace] = "rbxasset://textures/ui/Controls/backspace.png", [Enum.KeyCode.Return] = "rbxasset://textures/ui/Controls/return.png", [Enum.KeyCode.LeftShift] = "rbxasset://textures/ui/Controls/shift.png", [Enum.KeyCode.RightShift] = "rbxasset://textures/ui/Controls/shift.png", [Enum.KeyCode.T...
106
MiaGobble/ExpressivePrompts
MiaGobble-ExpressivePrompts-eec74ea/src/NewInputLabel/Keyboard/init.luau
luau
.luau
-- Constants local KEYBOARD_BUTTON_IMAGE = require(script.KeyboardButtonImage) local KEYBOARD_BUTTON_ICON_MAPPING = require(script.KeyboardButtonIconMapping) local KEYCODE_TO_TEXT_MAPPING = require(script.KeyCodeToTextMapping) -- Services local UserInputService = game:GetService("UserInputService") return function(Sc...
583
MiaGobble/ExpressivePrompts
MiaGobble-ExpressivePrompts-eec74ea/src/NewInputLabel/Touch.luau
luau
.luau
return function(Scope : any, Prompt : ProximityPrompt, Config : {}) return { Scope:New("ImageLabel", { Name = "ButtonImage", ImageColor3 = Config.TextColor, BackgroundTransparency = 1, Size = UDim2.fromOffset(25, 31), AnchorPoint = Vector2.new(0.5,...
124
MiaGobble/ExpressivePrompts
MiaGobble-ExpressivePrompts-eec74ea/src/NewInputLabel/init.luau
luau
.luau
-- Constants local INPUT_KEY_LABELS = { [Enum.ProximityPromptInputType.Gamepad] = require(script.Gamepad), [Enum.ProximityPromptInputType.Touch] = require(script.Touch), ["Default"] = require(script.Keyboard), } return function(Scope : any, inputType, prompt, Config : {}) local Component = INPUT_KEY_LA...
97
MiaGobble/ExpressivePrompts
MiaGobble-ExpressivePrompts-eec74ea/src/SoundData.luau
luau
.luau
-- NOTE: This module will be improved when the input connections are recoded -- Imports local Packages = script.Parent:FindFirstChild("Packages") local Seam = if Packages then require(Packages.Seam) else require(script.Parent.Parent.Seam) -- Variables local Scope = Seam.Scope(Seam) return { AppearSoundId = Scope:...
153
cameronpcampbell/supercorner
cameronpcampbell-supercorner-22ff6f1/supercorner/src/atlas.luau
luau
.luau
--!strict local Internal = require("./internal") local AssetService = game:GetService("AssetService") local MAX_ATLAS_SIZE = 1024 export type CreateAtlasParams = { CornerRadius: number?, CornerSmoothing: number?, TopLeftRadius: number?, TopRightRadius: number?, BottomRightRadius: number?, BottomLeftRadius: nu...
3,047
cameronpcampbell/supercorner
cameronpcampbell-supercorner-22ff6f1/supercorner/src/figma_squircle_luau/distribute.luau
luau
.luau
--!strict local types = require("./types") type NormalizedCorners = types.NormalizedCorners -- Corner indices: 1=TL, 2=TR, 3=BR, 4=BL -- Adjacency (hardcoded): -- TL: TR via top(width), BL via left(height) -- TR: TL via top(width), BR via right(height) -- BR: BL via bottom(width), TR via right(height) -- B...
737
cameronpcampbell/supercorner
cameronpcampbell-supercorner-22ff6f1/supercorner/src/figma_squircle_luau/draw.luau
luau
.luau
--!strict local types = require("./types") type CornerPathParams = types.CornerPathParams type SvgOp = types.SvgOp type SvgPathInput = { width: number, height: number, top_left_path_params: CornerPathParams, top_right_path_params: CornerPathParams, bottom_right_path_params: CornerPathParams, bottom_left_path_p...
1,720
cameronpcampbell/supercorner
cameronpcampbell-supercorner-22ff6f1/supercorner/src/figma_squircle_luau/init.luau
luau
.luau
--!strict local types = require("./figma_squircle_luau/types") local distribute = require("./figma_squircle_luau/distribute") local draw = require("./figma_squircle_luau/draw") export type FigmaSquircleParams = types.FigmaSquircleParams export type SvgOp = types.SvgOp local CornerParamsScratch: { types.CornerPathPar...
833
cameronpcampbell/supercorner
cameronpcampbell-supercorner-22ff6f1/supercorner/src/figma_squircle_luau/types.luau
luau
.luau
--!strict export type MoveToOp = { type: "M", x: number, y: number, } export type LineToOp = { type: "L", x: number, y: number, } export type CubicBezierOp = { type: "c", dx1: number, dy1: number, dx2: number, dy2: number, dx: number, dy: number, } export type ArcOp = { type: "a", rx: number, ry: nu...
352
cameronpcampbell/supercorner
cameronpcampbell-supercorner-22ff6f1/supercorner/src/flatten.luau
luau
.luau
--!strict local squircleTypes = require(script.Parent.figma_squircle_luau) type SvgOp = squircleTypes.SvgOp local VERTEX_STRIDE = 8 local INITIAL_CAPACITY = 128 -- Module-level scratch buffer for De Casteljau subdivision stack, reused across calls. local MAX_DEPTH = 16 local STACK_STRIDE = 36 local stackBuf = buffe...
3,031
cameronpcampbell/supercorner
cameronpcampbell-supercorner-22ff6f1/supercorner/src/init.luau
luau
.luau
--!strict --!nolint LocalShadow local Internal = require("@self/internal") local Atlas = require("@self/atlas") local AssetService = game:GetService("AssetService") export type CreateParams = { CornerRadius: number?, CornerSmoothing: number?, TopLeftRadius: number?, TopRightRadius: number?, BottomRightRadius: n...
3,571
cameronpcampbell/supercorner
cameronpcampbell-supercorner-22ff6f1/supercorner/src/internal.luau
luau
.luau
--!strict --!nolint LocalShadow local FigmaSquircle = require("./figma_squircle_luau") local Flatten = require("./flatten") local Rasterize = require("./rasterize").rasterize export type RedrawParams = { CornerRadius: number?, CornerSmoothing: number?, TopLeftRadius: number?, TopRightRadius: number?, BottomRight...
2,014
cameronpcampbell/supercorner
cameronpcampbell-supercorner-22ff6f1/supercorner/src/rasterize.luau
luau
.luau
--!strict --!nolint LocalShadow -- Edge buffer layout (f32 fields at byte offsets) -- [0] yMin [4] yMax [8] xAtYmin [12] dxPerDy [16] dir (+1/-1) local EDGE_STRIDE = 20 -- Vertex buffer layout (f32 fields at byte offsets) -- [0] x [4] y local VERTEX_STRIDE = 8 -- Module-level scratch buffers, reused across rend...
4,688
cameronpcampbell/supercorner
cameronpcampbell-supercorner-22ff6f1/supercorner/test.client.luau
luau
.luau
--!strict local RepStorage = game:GetService("ReplicatedStorage") local UserInputService = game:GetService("UserInputService") local Players = game:GetService("Players") local Supercorner = require(RepStorage.supercorner) local STROKE_RADIUS = 0 local SIZE = 200 local SLIDER_HEIGHT = 40 local GAP = 80 local ScreenG...
2,684
cameronpcampbell/supercorner
cameronpcampbell-supercorner-22ff6f1/supercorner/test_atlas.client.luau
luau
.luau
--!strict local RepStorage = game:GetService("ReplicatedStorage") local UserInputService = game:GetService("UserInputService") local Players = game:GetService("Players") local Supercorner = require(RepStorage.supercorner) local Atlas = Supercorner.atlas local SIZE = 200 local SLIDER_HEIGHT = 40 local KEYPOINTS = 25 ...
2,690
cameronpcampbell/supercorner
cameronpcampbell-supercorner-22ff6f1/supercorner/test_cache.client.luau
luau
.luau
--!strict local RepStorage = game:GetService("ReplicatedStorage") local Players = game:GetService("Players") local Supercorner = require(RepStorage.supercorner) local GRID_COLS = 4 local GRID_ROWS = 4 local CELL_SIZE = 100 local GAP = 10 local CORNER_RADIUS = 25 local CORNER_SMOOTHING = 1. local ScreenGui = Instanc...
1,037
cameronpcampbell/supercorner
cameronpcampbell-supercorner-22ff6f1/supercorner/tests/optimization.luau
luau
.luau
--!strict local Rasterize = require("../src/rasterize").rasterize local Fs = require("@lune/fs") local Luau = require("@lune/luau") -- The public Roblox module depends on services that are unavailable in Lune. -- Load the pure flattener with its type-only Roblox require replaced, while Rojo -- build validation covers...
3,621
cameronpcampbell/supercorner
cameronpcampbell-supercorner-22ff6f1/supercorner/tests/roblox_optimization.luau
luau
.luau
--!strict local ReplicatedStorage = game:GetService("ReplicatedStorage") local SupercornerModule = ReplicatedStorage:WaitForChild("supercorner") local Supercorner = require(SupercornerModule) local Internal = require(SupercornerModule:WaitForChild("internal")) local function render(params: Internal.RedrawParams): str...
788
cameronpcampbell/supercorner
cameronpcampbell-supercorner-22ff6f1/supercorner_fusion03/src/atlas.luau
luau
.luau
--!strict local Packages = script.Parent.Parent.roblox_packages local Supercorner = require(Packages.supercorner) local Fusion = require(Packages.fusion) local Peek, Children = Fusion.peek, Fusion.Children local Shared = require(script.Parent.shared) type Scope = Fusion.Scope<typeof(Fusion)> type UsedAs<T> = Fusion...
2,324
cameronpcampbell/supercorner
cameronpcampbell-supercorner-22ff6f1/supercorner_fusion03/src/init.luau
luau
.luau
--!strict local Packages = script.Parent.roblox_packages local Supercorner = require(Packages.supercorner) local Fusion = require(Packages.fusion) local Peek, Children = Fusion.peek, Fusion.Children local Shared = require(script.shared) local AtlasFusion = require(script.atlas) type Scope = Fusion.Scope<typeof(Fusio...
4,660
cameronpcampbell/supercorner
cameronpcampbell-supercorner-22ff6f1/supercorner_fusion03/src/shared.luau
luau
.luau
--!strict local Packages = script.Parent.Parent.roblox_packages local Fusion = require(Packages.fusion) local Peek, Children = Fusion.peek, Fusion.Children type Scope = Fusion.Scope<typeof(Fusion)> type UsedAs<T> = Fusion.UsedAs<T> type Child = Fusion.Child export type ResolvedRadii = { topLeft: UsedAs<number>, t...
2,275
cameronpcampbell/supercorner
cameronpcampbell-supercorner-22ff6f1/supercorner_react/src/init.luau
luau
.luau
--!strict local React = require(script.Parent.Parent.Parent._Index["jsdotlua_react@17.2.1"].react) local Supercorner = require(script.Parent.Parent.Parent._Index["cameronpcampbell_supercorner@0.0.8"].supercorner) local CreateElement = React.createElement const CREATE_ONLY_PROPS = { "MaxCornerRadius", "MaxTopLeft...
4,437
cameronpcampbell/supercorner
cameronpcampbell-supercorner-22ff6f1/supercorner_react/supercorner_react_index.luau
luau
.luau
local PackagesIndex = script.Parent._Index return require(PackagesIndex.SUPERCORNER_REACT["supercorner-react"])
28
Asiandayboy/InventoryMaker
Asiandayboy-InventoryMaker-abe5667/src/client_modules/IMC/IMConstants.luau
luau
.luau
local IMConstants = { SLOT_NAME_PREFIX = "SLOT_", HOVER_NAME_PREFIX = "HOVER_PROMPT_", FILLED_GUI_NAME = "FILLED", DUMMY_FILLED_GUI_NAME = "D_FILLED", GRID_LAYOUT_NAME = "IMGridLayout", CONTAINER_ATTRIB...
203
Asiandayboy/InventoryMaker
Asiandayboy-InventoryMaker-abe5667/src/client_modules/IMC/IMContainer.luau
luau
.luau
--!strict local BIT_FLAGS = { CLOSED = 0b1, NO_FILTERING = 0b10, NO_DRAGGING = 0b100, NO_STACKING = 0b1000, HOTBAR_UNTOGGLED_HOVER = 0b10000, HOTBAR_COLLAPSE = 0b100000, HOTBAR_FILL_FIRST = 0b1000000, NO_AUTO_EQUIP = 0b10000000, NO_EQUIPPED_STATE = 0b100000000, NO_SO...
7,717
Asiandayboy/InventoryMaker
Asiandayboy-InventoryMaker-abe5667/src/client_modules/IMC/IMDraggableUI.luau
luau
.luau
--!strict --[[ DraggableUI forked from v1.3.3 (used in InventoryMaker v1.0.0) 5/17/2025 ------------------------------------------------------------------------ Forked Version Updates: -------------- v1.3.5 5/18/25 - set z indes on input began instead of when drag initially starts v1.3.4 5/17/25 - add _c...
1,999
Asiandayboy/InventoryMaker
Asiandayboy-InventoryMaker-abe5667/src/client_modules/IMC/IMFilter.luau
luau
.luau
--!strict local IMFilter = {} local IMContainer = require(script.Parent.IMContainer) local IMUserType = require(script.Parent.IMUserType) export type CustomFilterFunc = (slotIndex: number, item: IMUserType.USER_ITEM_TYPE, containerIndex: number) -> boolean local function searchFilter( container: IMContainer._Con...
624
Asiandayboy/InventoryMaker
Asiandayboy-InventoryMaker-abe5667/src/client_modules/IMC/IMInput.luau
luau
.luau
--!strict local UIS = game:GetService("UserInputService") type ActionValidator = (input: InputObject) -> boolean type ActionValidator2 = (input: InputObject | Enum.UserInputState) -> boolean local IMInput = { HOVER_PROMPT_START = 1, HOVER_PROMPT_END = 2, SPLIT = 3, CONTEXT_MENU_OPEN = 5, MULTI_CONTEXT_BOUNDS_CHE...
1,097
Asiandayboy/InventoryMaker
Asiandayboy-InventoryMaker-abe5667/src/client_modules/IMC/IMStaticContainer.luau
luau
.luau
--!strict local StaticContainer = {} local Players = game:GetService("Players") local player = Players.LocalPlayer::Player local playerGui = player.PlayerGui local Constants = require(script.Parent.IMConstants) export type ActivatedCallbackStatic = (item: any, filledGui: GuiObject, containerIndex: number) -> () type...
3,060
Asiandayboy/InventoryMaker
Asiandayboy-InventoryMaker-abe5667/src/client_modules/IMC/IMUserType.luau
luau
.luau
local IMUserType = {} -- This is for if you want better typechecking for your items (ITEM_TYPE) -- Define the schema of your type here. This type should represent what each item looks like. You can store anything you want -- The current type is just used as an example export type USER_ITEM_TYPE = { -- DON'T CHANGE T...
141
Asiandayboy/InventoryMaker
Asiandayboy-InventoryMaker-abe5667/src/client_modules/IMC/IMUtility.luau
luau
.luau
--!strict local Utility = {} local GuiService = game:GetService("GuiService") export type Table = { [any]: any } function Utility.GetGuiInsetY(guiInsetIgnored: boolean): number return guiInsetIgnored and GuiService:GetGuiInset().Y or 0 end function Utility.DeepCopyTable(t: Table) local copy = {} for k,v in pa...
305
seaofvoices/chroma-luau
seaofvoices-chroma-luau-43244ca/jest.config.luau
luau
.luau
return { testMatch = { '**/*.test' }, }
13
seaofvoices/chroma-luau
seaofvoices-chroma-luau-43244ca/scripts/roblox-test.server.luau
luau
.luau
local ReplicatedStorage = game:GetService('ReplicatedStorage') local jest = require('@pkg/@jsdotlua/jest') local jestRoots = { ReplicatedStorage:FindFirstChild('TestTarget'), } local success, result = jest.runCLI(ReplicatedStorage, {}, jestRoots):await() if not success then error(result) end task.wait(0.5)...
82
seaofvoices/chroma-luau
seaofvoices-chroma-luau-43244ca/src/init.luau
luau
.luau
local chroma = require('./chroma') export type Color = chroma.Color export type AsColor = chroma.AsColor export type ColorBrewerName = chroma.ColorBrewerName export type ColorSpace = chroma.ColorSpace export type InterpolationMode = chroma.InterpolationMode export type Cubehelix = chroma.Cubehelix export type Scale = ...
600
seaofvoices/chroma-luau
seaofvoices-chroma-luau-43244ca/src/io/input.luau
luau
.luau
export type Format = { -- cmyk cmyk: (...any) -> { number }, -- css css: (css: string) -> { number }?, -- gl gl: (...any) -> { number }, -- hcg hcg: (...any) -> { number }, -- hex hex: (string) -> { number }, -- hsi hsi: (...any) -> { number }, -- hsl hsl: (...an...
345
seaofvoices/chroma-luau
seaofvoices-chroma-luau-43244ca/src/io/roblox/__tests__/roblox2rgb.test.lua
luau
.lua
local jestGlobals = require('@pkg/@jsdotlua/jest-globals') local chroma = require('../../..') local expect = jestGlobals.expect local test = jestGlobals.test local describe = jestGlobals.describe if _G.LUA_ENV ~= 'roblox' then return end test('build a color from a Roblox Color3', function() expect(chroma(Co...
251
seaofvoices/chroma-luau
seaofvoices-chroma-luau-43244ca/src/io/roblox/init.luau
luau
.luau
local Color = require('../../Color') local chroma = require('../../chroma') local input = require('../input') type Color = Color.Color type PrivateColor = Color.PrivateColor input.format.roblox = function(color: Color3, opacity: number?) return { color.R * 255, color.G * 255, color.B * 255, if opacity then opacit...
264
seaofvoices/chroma-luau
seaofvoices-chroma-luau-43244ca/src/types/blend-types.luau
luau
.luau
local ColorTypes = require('./color-types') type Color = ColorTypes.Color type AsColor = ColorTypes.AsColor export type BlendMode = 'normal' | 'multiply' | 'screen' | 'overlay' | 'darken' | 'lighten' | 'dodge' | 'burn' type BlendFn = ({ number }, { number }) -> { number } export type...
159
seaofvoices/chroma-luau
seaofvoices-chroma-luau-43244ca/src/types/brewer-types.luau
luau
.luau
export type ColorBrewerName = 'OrRd' | 'PuBu' | 'BuPu' | 'Oranges' | 'BuGn' | 'YlOrBr' | 'YlGn' | 'Reds' | 'RdPu' | 'Greens' | 'YlGnBu' | 'Purples' | 'GnBu' | 'Greys' | 'YlOrRd' | 'PuRd' | 'Blues' | 'PuBuGn' | 'Viridis' | 'Spectral' | '...
257
seaofvoices/chroma-luau
seaofvoices-chroma-luau-43244ca/src/types/color-types.luau
luau
.luau
local InterpolationMode = require('./interpolation-mode') export type InterpolationMode = InterpolationMode.InterpolationMode export type ColorSpace = 'cmyk' | 'css' | 'gl' | 'hcg' | 'hex' | 'hsi' | 'hsl' | 'hsv' | 'lab' | 'lch' | 'hcl' | 'name' | 'num' | 'oklab...
861
seaofvoices/chroma-luau
seaofvoices-chroma-luau-43244ca/src/types/cubehelix-types.luau
luau
.luau
local ColorTypes = require('./color-types') type Color = ColorTypes.Color export type Cubehelix = ((number) -> Color) & { start: (() -> number) & ((number) -> Cubehelix), rotations: (() -> number) & ((number) -> Cubehelix), gamma: (() -> number) & ((number) -> Cubehelix), hue: (() -> number | { number...
125
seaofvoices/chroma-luau
seaofvoices-chroma-luau-43244ca/src/types/interpolation-mode.luau
luau
.luau
export type InterpolationMode = 'hcg' | 'hsi' | 'hsl' | 'hsv' | 'lab' | 'lch' | 'hcl' | 'lrgb' | 'num' | 'oklab' | 'oklch' | 'rgb' return nil
77
seaofvoices/chroma-luau
seaofvoices-chroma-luau-43244ca/src/types/scale-types.luau
luau
.luau
local ColorTypes = require('./color-types') local InterpolationMode = require('./interpolation-mode') type Color = ColorTypes.Color type AsColor = ColorTypes.AsColor export type InterpolationMode = InterpolationMode.InterpolationMode type ScaleFn<T> = (number?) -> T export type ScaleBase<T, E> = ScaleFn<T> & E & { ...
589
seaofvoices/chroma-luau
seaofvoices-chroma-luau-43244ca/src/utils/round.roblox.luau
luau
.luau
-- deviation: a utility to round numbers without introducing -0 floats local function round(value: number): number local rounded = math.round(value) return if rounded == 0 then 0 else rounded end return round
49
michaeldougal/AnimNation
michaeldougal-AnimNation-032348f/AnimNation/AnimChain.luau
luau
.luau
local Spring = require(script.Parent:WaitForChild("Spring")) type Spring = Spring.Spring export type AnimChain = { -- Metatable members __index: AnimChain, -- Public members new: (animators: { Spring | Tween }?) -> AnimChain, AndThen: (AnimChain, callback: () -> ()) -> AnimChain, Await: (AnimChain) -> AnimCh...
1,175
michaeldougal/AnimNation
michaeldougal-AnimNation-032348f/AnimNation/Spline.luau
luau
.luau
--[[ File Info Author(s): TactBacon, ChiefWildin (feat. eliphant) --]] -- Types export type Spline = { -- Metatable members __index: (self: Spline, key: string) -> any, __newindex: (self: Spline, key: string, value: any) -> any, -- Public members new: (controlPoints: { CFrame }) -> Spline, Destroy: (self: S...
3,337
Infinite-Store/Infinite-Store
Infinite-Store-Infinite-Store-87d0e48/plugins/CamMaker.plugin.luau
luau
.luau
if not isfolder("CAMS") then makefolder("CAMS") end local Plugin = { PluginName = "Cam Maker v1.2", PluginDescription = "CamMaker but better!", Commands = { makecam = { ListName = "makecam / mc [Name]", Description = "Creates a camera to view.", Aliases = { "mc" }, Function = function(args, speaker) ...
784
Infinite-Store/Infinite-Store
Infinite-Store-Infinite-Store-87d0e48/plugins/FakeChat.plugin.luau
luau
.luau
local Plugin = { ["PluginName"] = "Fake Chat", ["PluginDescription"] = "Be able to chat as anyone.", ["Commands"] = { ["fakechat"] = { ["ListName"] = "fakechat / fchat [plr] [msg]", ["Description"] = "Chat an string as the specified player.", ["Aliases"] = { "fchat" }, ["Function"] = function(args, spe...
189
Infinite-Store/Infinite-Store
Infinite-Store-Infinite-Store-87d0e48/plugins/FreeFall.plugin.luau
luau
.luau
local Players = game:GetService("Players") return { ["PluginName"] = "Free Fall", ["PluginDescription"] = "Scripted by NoobSploit#0001", ["Commands"] = { ["freefall"] = { ["ListName"] = "freefall [height]", ["Description"] = "FreeFalled", ["Aliases"] = {}, ["Function"] = function(args, speaker) if ...
312
Infinite-Store/Infinite-Store
Infinite-Store-Infinite-Store-87d0e48/plugins/Freecam2.plugin.luau
luau
.luau
local allowspeedmove = true wait(1) local c = workspace.CurrentCamera local player = game.Players.LocalPlayer local userInput = game:GetService("UserInputService") local rs = game:GetService("RunService") local starterPlayer = game:GetService("StarterPlayer") local selected = false local speed = 60 local lastUpdate =...
941
Infinite-Store/Infinite-Store
Infinite-Store-Infinite-Store-87d0e48/plugins/GotoFolder.plugin.luau
luau
.luau
return { ["PluginName"] = "goto folder", ["PluginDescription"] = "Go to a folder", ["Commands"] = { ["gotofolder"] = { ["ListName"] = "gotofolder", ["Description"] = "Made By D7M", ["Aliases"] = {}, ["Function"] = function(args, speaker) for i, v in pairs(workspace:GetDescendants()) do if v.Na...
172