|
Post by exnooyorka on Dec 24, 2018 23:05:23 GMT
When rapidly changing colors in an attempt to create a rotating color fade effect I'm getting a lot of flashing from the device in between each TurnOnRGBLights command I'm issuing in the loop below:
Dim byRed As [Byte] = 255
Dim byGreen As [Byte] = 0
Dim byBlue As [Byte] = 0
' Call the api function TurnOnRGBLights passing the device index, red, green, blue color
Do Until Now() >= DateAdd(DateInterval.Second, 50, timeStart)
For i = 0 To nNumberOfBlyncDevices
bResult = oBlynclightController.TurnOnRGBLights(i, byRed, byGreen, byBlue)
Next i
If byRed > 0 And byBlue = 0 Then
byRed = byRed - 5
byGreen = byGreen + 5
ElseIf byGreen > 0 And byRed = 0 Then
byGreen = byGreen - 5
byBlue = byBlue + 5
Else
byRed = byRed + 5
byBlue = byBlue - 5
End If
Loop
The loop is designed to run the color wheel for about 50 seconds and color values change in increments of 5 for each color change command.
The result is that with each color change command the Blynclight flashes white and then shows the color. So the result is a very unpleasant strobe effect.
Is there any way to change colors smoothly?
|
|
|
Post by idihixig on Sept 4, 2019 9:48:22 GMT
|
|
|
Post by idihixig on Sept 4, 2019 9:50:49 GMT
|
|