Quadtrees image compression

Hi everybody,

Long time/first time…

Im trying to create a Quadtree image compression using processing.

I’ve tried to follow Daniel Shiffmans coding challenge on quadtree data structure but I get lost.

I understand the core concepts but he writes it all in Java script.
A lot of the syntax is lost on me since I’ve only been using Processing. (for example “this”, "var, & “let” are all new terms to me).

can anyone point me in the right direction or at least help with an explanation on some of the syntax Mr Shiffman uses?

Thanks so much.

1 Like

Hey there Timol,

The page Processing transition contains an overview of differences when converting Processing to P5 (which is kind of a mix between Processing and JavaScript) or vice versa. If Daniel is using P5 in his coding challenge this link should answer your question. If he’s doing everything in pure JS this link might be a good stepping stone for you.

Another interesting video, if you feel like learning more about JavaScript concepts, is the let vs. var video by Daniel.


More Java Mode x p5js sketches: :angel:


Thanks so much for the help guys. Hopefully this will see me on my way.


1 Like

devmag did an article on this a long long time ago here which might be of help