So JavaScript is actually not the issue here… We have for loops, but unless you understand how the PB ‘engine’ works, it’ll actually work against you trying to just “make it do stuff”.
Turning an led on for exactly one second is actually quite hard in PB, but we can get very close to it, most of the time.
And as for the color of .2458, it’s a shade of green-yellow. (And yes, I had to go figure that out, but I actually used a nonPB website to do so, because I understand how some other people measure color differently than PB does. And then I goofed it as I thought the quickly googled website I used was using 256 values, but it uses 360)
I’ll explain all of these and more… And we’ll avoid the sine and cosine stuff till you understand why we use them and how.