-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathInterface.lua
More file actions
63 lines (44 loc) · 1.1 KB
/
Copy pathInterface.lua
File metadata and controls
63 lines (44 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
-- 1-d plasm generator interface
-- Last mod.: 2025-04-09
-- Exports:
return
{
-- [Before]
-- Image line length in pixels
ImageLength = 60,
-- Color format: "Gs" for grayscale, "Rgb" for RGB
ColorFormat = 'Gs',
StartColor = nil,
EndColor = nil,
-- Scale
Scale = 1.0,
-- Distance transforming function [0.0, 1.0] -> [0.0, 1.0]
TransformDistance = request('TransformDistance'),
-- [At]
-- Generate 1-D gradient
Run = request('Run'),
-- [After]
-- Result image line
Line = {},
-- [Internal]
-- Type of color. Filled in Run()
BaseColor = nil,
-- Distance between leftmost and rightmost pixels. Calculated in Run()
MaxDistance = 0,
-- Recursive filler
Plasm = request('Plasm'),
-- Set pixel
SetPixel = request('SetPixel'),
-- Midway pixel calculator
CalculateMidwayPixel = request('CalculateMidwayPixel'),
-- Noise function [0.0, 1.0] -> [-1.0, 1.0]
MakeDistanceNoise = request('MakeDistanceNoise'),
}
--[[
2024-09 #
2024-11 # #
2025-03 #
2025-04-04
2025-04-05
2024-04-06
]]