Skip to content

Commit

Permalink
Merge pull request #146 from vortigont/EffectLiquidLamp
Browse files Browse the repository at this point in the history
Effect liquid lamp
  • Loading branch information
vortigont authored Jan 9, 2025
2 parents e7394c4 + 8732687 commit 4d75db2
Show file tree
Hide file tree
Showing 12 changed files with 210 additions and 149 deletions.
10 changes: 10 additions & 0 deletions data/eff/controls.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,16 @@
{"label":"nsmooth", "smin":100, "smax":255}
]
},
"liquidlamp":{
"ctrls":[
{"label":"speed", "smin":20, "smax":250},
{"label":"scale", "min":5, "max":50},
{"label":"pallete", "min":0, "max":16},
{"label":"hue", "min":0, "max":255},
{"label":"sharr", "min":0, "max":3},
{"label":"physics", "min":0, "max":1}
]
},
"magma":{
"ctrls":[
{"label":"speed"},
Expand Down
110 changes: 0 additions & 110 deletions include/config.h

This file was deleted.

122 changes: 122 additions & 0 deletions resources/html/js/ui_lamp.json
Original file line number Diff line number Diff line change
Expand Up @@ -3477,6 +3477,128 @@
}
]
},
"liquidlamp":{
"section":"eff_ctrls",
"replace":true,
"block":[
{
"section":"uidata",
"block":[
{
"action":"pick",
"key":"lampui.effCommon.speed"
},
{
"action":"pick",
"key":"lampui.effCommon.scale"
}
]
},
{
"id":"eff_control_2",
"html":"select",
"label":"Палитры",
"onChange": true,
"value":0,
"section":"options",
"block":[
{
"value":0,
"label":"Custom - MBViolet"
},
{
"value":1,
"label":"Jul"
},
{
"value":2,
"label":"Sunset Real"
},
{
"value":3,
"label":"Pink Splash"
},
{
"value":4,
"label":"Landscape 1"
},
{
"value":5,
"label":"Landscape 2"
},
{
"value":6,
"label":"Landscape 3"
},
{
"value":7,
"label":"Landscape 4"
},
{
"value":8,
"label":"Ocean Breeze"
},
{
"value":9,
"label":"GMT drywet 1"
},
{
"value":10,
"label":"GMT drywet 2"
},
{
"value":11,
"label":"GMT drywet 3"
},
{
"value":12,
"label":"Fire"
},
{
"value":13,
"label":"Pink Purple 1"
},
{
"value":14,
"label":"Pink Purple 2"
},
{
"value":15,
"label":"Sunset real"
},
{
"value":16,
"label":"Black Magenta Red"
}
]
},
{
"html": "input",
"id": "eff_control_3",
"type": "range",
"label": "Оттенок для спец палитры",
"min": 0,
"max": 255,
"onChange": true
},
{
"html": "input",
"id": "eff_control_4",
"type": "number",
"label": "Фильтр Шарра",
"min": 0,
"max": 2,
"onChange": true
},
{
"id":"eff_control_5",
"html":"input",
"label":"Физика",
"type":"checkbox",
"onChange": true
}
]
},
"magma":{
"section":"eff_ctrls",
"replace":true,
Expand Down
2 changes: 1 addition & 1 deletion src/display.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
An object file for LED output devices, backends and buffers
*/
#include "config.h"

#include "display.hpp"
#include "devices.h"
#include "embuifs.hpp"
Expand Down
Loading

0 comments on commit 4d75db2

Please sign in to comment.