pythonimagejythonjes

How to use these Jython functions in Python?


I just want to know that how can I use Jython functions such as below in Python.

makeEmptyPicture(width,height)
show(pic)
setAllPixelsToAColor(pic, red)

When I use these functions in Python, it gives me an error that the name makeEmptyPicture is not defined.

What should I do?
Do I have to install some library in my Python or is something else required?


Solution

  • After some searching, I actually got the answer.

    First, download the JES 5.02 from the below link depending on your OS and Java installed or not.

    https://github.com/gatech-csl/jes/releases
    

    And then run the following functions. Because the functions which I use in this program like makeEmptyPicture, pickAColor etc are basically the JES functions and will not be compiled by python compiler except this JES.