I can’t speak English, so I use translation software.
It may be strange English, but please forgive me.
I don’t understand the basics.
10 LEDs are lined up.
How do you fill in the program that lights only the 4th one?
Middle half. The first half is white. The second half is blue. How do you fill in the program to turn it on like this?
hsv(hue, saturation, value)
I understand that I use this command.
How do you specify a value that specifies the location of the LED?
The usual way to write patterns for Pixelblaze is inside-out compared to the way you push pixel data to the LEDs with other systems like FastLED; Pixelblaze is more “object-oriented” in a sense. With Pixelblaze, the render engine runs in a loop doing its housekeeping and input/output work as fast as it can, and at the appropriate time it calls your beforeRender() and render() functions to let you calculate the pixel colors, which it then sends out to the string of LEDs.
So if you wish to set the color of a specific pixel, you would want to do it inside the render(index) function because that’s the only place you know which pixel is being rendered. And I’ll stop there because I see that @scruffynerf has just given you an example…
I was excited that you were posting a image until I realized it was a pile of text. Still thinking about how to convey how PB works just with pictures.
My goal this fall/winter is to teach newbies how to think in a PB way, and this certainly is part of that. Being able to visualize how it works is a good goal.