Kistan 2.0 Doc
  • Furniture
  • Sound cables
  • Roof LED
  • Pipes
  • Inputs/Outputs
  • Mixer
  • Amplifiers
  • DALI
  • DMX
  • Roof LED
  • LMixer
  • Sound mixer defaults
  • Bar computer to Kitchen speakers
  • Server: IN-SMN
  • Server: IN-ITK
  • SSO / Login
  • Grafana
IT-Sektionen
  • Furniture
  • Sound cables
  • Roof LED
  • Pipes
  • Inputs/Outputs
  • Mixer
  • Amplifiers
  • DALI
  • DMX
  • Roof LED
  • LMixer
  • Sound mixer defaults
  • Bar computer to Kitchen speakers
  • Server: IN-SMN
  • Server: IN-ITK
  • SSO / Login
  • Grafana
IT-Sektionen
  • LMixer

    • LMixer
    • LMixer scripting
    • Mixing technique
    • LMixer examples
    • LMixer Addons

      • Addons
      • Addon Development
      • Built-in addons
      • Kistan Specific Addons
      • LMixer Addon Suite

        • Addon Suite
        • Effects
        • Addon Suite Extensions
        • Utility Functions
    • Reference

      • Layers in kistan
      • Macros
      • Fixture Types in Kistan
      • Fixtures in Kistan's LMixer
      • Fixture Config File
    • LMixer Technical Info

      • Technical LMixer Info
      • MQTT Topics
      • Compatibility

Kistan Specific Addons

Location: kistan_specific

These are a group of addons that only apply to things within Kistan. Most commonly, it is for specific types of fixtures.

These have the Addon Suite as a required dependency.

Roof

Location: kistan_specific/roof

roof_shader

Arguments:

namedescription
shaderSee shaders
durationHow long to run this shader (ms), nil if indefinite

The fragment shader gets the following parameters:

namedescription
xThe x-coordinate of the pixel (higher=closer to scene)
yThe y-coordinate of the pixel (lower=closer to window the windows)
timeThe time in ms since the start of the shader

Example: Makes the roof slowly change in a rainbow pattern using shaders.

-- rainbow_roof_cyclic
function roof_hue_gradient(params)
    local hue = (params.y * -40 + params.x * -10 + time * 360 / 5000) % 360;
    local intensity = 120;

    if (Scripts.rainbow_roof_cyclic:is_stopped()) then
        return "STOP"
    end
    return hue_to_rgb(hue, intensity);
end
roof:add(0, roof_shader(roof_hue_gradient, nil))

Sign

Location: kistan_specific/sign

Things for the "Kistan sign"

sign_shader

namedescription
shaderSee shaders
durationHow long to run this shader (ms), nil if indefinite

The fragment shader gets the following parameters:

namedescription
xThe x-coordinate of the pixel
yThe y-coordinate of the pixel
timeThe time in ms since the start of the shader

sign_spiral

Creates a spiral shader for the sign. Only argument is settings

nametypedescription
widthnumberThe width of the spiral
invertboolean?Inverts
falloff_powernumberThe power of the falloff of the spiral
colorRGBColorThe color of the spiral, defaults to 0x010101

The fragment shader gets the following parameters:

namedescription
xThe x-coordinate of the pixel
yThe y-coordinate of the pixel
timeThe time in ms since the start of the shader

Example: Creating a spiral:


local baseColor = {
    r=0x44,
    g=0x22,
    b=0x55
}

sign:add(0, sign_shader(sign_spiral({speed=5,
    width=40,
    falloff_power=2,
    invert=true,
    color=baseColor}), 100000))

Example: Creating a radar effect:

sign:add(0, set(whole_sign, 0x22, 0xff, 0xcc))
sign_dim:add(0, sign_shader(sign_spiral({
    speed=2,
    width=10000,
    falloff_power=20}), 100000))

sign_heartbeat

Make the "heartbeat shaped A" pulse.

Settings:

nametypedescription
widthnumber?The width of the entire pulse, must > 0
dimInnumber?The width of the dim in part. dimIn+dimOut <= width
dimOutnumber?The width of the dim out part dimIn+dimOut <= width
colorRGBColorThe color of the pulse
backColorRGBColorThe color of the background, defaults to 0x000000
speednumber?The speed of the pulse
easePowerInnumber?The exponent of the fading in part
easePowerOutnumber?The exponent of the fading out part

Example: Make the A pulse white

sign:add(speed*4.5, sign_heartbeat({
    color = {255, 255, 255}, 
    width = 2500, 
    speed = 0.5, 
    dimIn = 100, 
    dimOut = 2300, 
    easePowerIn = 10, 
    easePowerOut = 40}))

Drink Lights

Location: kistan_specific/drink_lights

drinks_moving_blocks

Makes multiple

nametypedescription
blockWidthnumber?The width of one block
colorsRGBColorArray of colors for each block.
stepTimenumber?The time in ms between each move
stepSizenumber?The number of pixels to move each step
durationnumber?The time to show this effect
flipboolean?Mirror the effect
flipPerRowboolean?Alternates mirrored and non-mirrored for each row
Edit this page
Prev
Built-in addons