Inquiry for generating a Gabor patch
Hello, I'm new to this forum and thus afraid that this place is might not for asking this inquiry. I apologize in advance if I came to a wrong place.
I'm trying to make an online experiment that displays multiple randomly oriented Gabor patches, and I found the source code of "Online Gabor-patch generator" from the blog here. I'm new to JS, html, and css, so I thought the source code provided here can be good start for me. But I realized that the source code of creating Gabor patch is written in php, and it is hard to pass variable from JS to php, as JS is client side language and php is server side language. As my experimental condition will be created with JS, I have to pass arrays and variables from JS to php, if I have to use the Gabor generator written in php.
So, I wonder why online Gabor patch generator is created with php, not with JS. Could you let me know the reason? Is it because creating Gabor patches with JS and html is much more difficult or impossible?
Thank you for reading this question..!
Comments
Hi Queen,
I might be mistaken, but the online gabor generator is not meant to be used interactively in your experiment. Instead you would create the patches beforehand, store them as images and then load/use them in your experiment, whether online of offline.
Does that make sense?
Eduard