Making an extension for every JavaScript exclusive feature I can think of!

I made that a looong time ago, using number arrays to store image data was the best I could come up with then. So it’s not out of the question that the method for storing images could be improved and optimized

2 Likes

Richard explained on stream that the ofBuffer function is a very complicated function that is used to store images such that they are page aligned in memory, making them faster. I do not think I’ll add it to this extension. Eventually, if you are using advanced functions like that. you should just switch to JavaScript.

4 Likes

wait so ofbuffer can store a image into say “medhsnxhnx” something like this or "myimage’

No. I wrote wrong. ofBuffer is only for decoding. There is no exposed function for encoding. You have to copy that part from somewhere else (watch stream to figure that out I guess)

4 Likes

Ok someone in stream chat today said I should add the sprite follow block with the extra option for turn rate that exists in JavaScript, so I have added that. I have also added the Parse Int and To String blocks that @AlexK suggested. I… think they work.

4 Likes

ooh the one with acceleration

1 Like

The variable name is called “turnRate” internally so I would assume it’s that.

1 Like

huh i always called it acceleration because thats what it does

1 Like