-
Notifications
You must be signed in to change notification settings - Fork 73
Open
Description
Hello,
After much debugging I got lucky and guessed that it must be my $onInit's exec PaintMat that's putting my UHK80 in a crash loop after some recent FW update. I miss my matrix green scroll animation and would like to bring it back :-( . Hoping you can easily reproduce the animation bug and let me know what to change. While I'm at it, the Matrix animation is kind of slow on UHK80 but very fast on UHK60 due to less buttons, wondering if you can spot an optimization for my super duper advanced rendering update logic lol.
Last lines in $onInit:
setVar i 0
setVar r 0
setVar g 0
setVar t 0
setVar wizType -1
exec PaintMat
A P (Paint current button $t) subroutine macro to set light color:
setVar j (($currentTime+($i*3))%4000)
setVar r 0
setVar g 0
if ($j >= 1500 && $j <= 2500) {
setVar r (((2500 - $j)*100) / 1000)
}
if ($j >= 1500 && $j <= 4000) {
setVar g (((4000 - $j)*255) / 2500)
}
set backlight.keyRgb.base.$t $r $g $r
and here's my PaintMat macros' contents:
yield
set backlight.constantRgb.rgb 0 0 0
delayUntil 150
setVar wizType 69
while ($wizType == 69) {
delayUntil 62
yield
ifNotLayer base break
ifKeyActive rightSpace break
delayUntil 62
setVar i 900
setVar t 100
call P
setVar i 700
setVar t 67
yield
call P
setVar i 500
setVar t 73
call P
setVar i 300
setVar t 79
call P
setVar i 100
setVar t 86
call P
setVar t 92
setVar i -100
call P
setVar i 750
setVar t 98
call P
setVar i 550
setVar t 65
call P
setVar i 350
setVar t 71
call P
setVar i 150
setVar t 77
call P
setVar i -50
setVar t 83
call P
setVar t 88
setVar i -250
setVar t 90
call P
setVar i 800
setVar t 103
call P
setVar i 600
setVar t 70
call P
setVar i 400
setVar t 76
call P
setVar i 200
setVar t 82
call P
setVar i 0
setVar t 89
call P
setVar t 88
setVar i -200
setVar t 94
call P
setVar t 88
setVar i -400
setVar t 95
call P
setVar i 1300
setVar t 101
call P
setVar i 1100
setVar t 68
call P
setVar i 900
setVar t 74
call P
setVar i 700
setVar t 80
call P
setVar i 500
setVar t 87
call P
setVar i 300
setVar t 93
call P
setVar i 100
setVar t 96
call P
setVar i -200
setVar t 130
call P
setVar i 1200
setVar t 35
call P
setVar i 1000
setVar t 0
call P
setVar i 800
setVar t 7
call P
setVar i 600
setVar t 15
call P
setVar i 400
setVar t 15
call P
setVar i 200
setVar t 22
call P
setVar i 0
setVar t 28
call P
setVar i -200
setVar t 33
call P
setVar i 500
setVar t 36
call P
setVar i 300
setVar t 1
call P
setVar i 100
setVar t 8
call P
setVar i -100
setVar t 16
call P
setVar i -300
setVar t 23
call P
setVar i -500
setVar t 29
call P
setVar i -700
setVar t 34
call P
setVar i 800
setVar t 38
call P
setVar i 600
setVar t 3
call P
setVar i 400
setVar t 10
call P
setVar i 200
setVar t 18
call P
setVar i 0
setVar t 25
call P
setVar i -200
setVar t 30
call P
setVar i 1200
setVar t 39
call P
setVar i 1000
setVar t 4
call P
setVar i 800
setVar t 11
call P
setVar i 600
setVar t 19
call P
setVar i 400
setVar t 26
call P
setVar i 200
setVar t 31
call P
setVar i 1700
setVar t 41
call P
setVar i 1500
setVar t 6
call P
setVar i 1300
setVar t 26
call P
setVar i 1100
setVar t 14
call P
setVar i 900
setVar t 21
call P
setVar i 700
setVar t 27
call P
setVar i 500
setVar t 32
call P
}
set backlight.constantRgb.rgb 255 255 255
setVar i 0
while ($i <= 130) {
set backlight.keyRgb.base.$i 255 255 255
setVar i ($i+1)
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels