The (JES)Jython Environment for Students is a full-featured media computation environment for programming in Jython. It includes facilities for programming, debugging, and media examination. JES also comes with an extensive multimedia API, enabling easy and rapid manipulations of sounds, images, and on some platforms, video.
Questions tagged [jes]
177 questions
0
votes
1 answer
How to make an "X" through circle in jython?
I have no idea how to do this. I need to draw two lines that make an X through a circle, where the starting and end points would be on the circumference of the circle. If anybody could even give me a direction to go in to do this, it'd be…
0
votes
1 answer
TypeError in Jython?
I'm trying to make two lines across a circle, like an X. Since it's an X, to find the (x,y) I just multiplied sqrt(2)/2 by the radius and then added or subtracted it from the (x,y) origin depending on what corner of the circle it was in. However I…
user2977294
0
votes
2 answers
Need to draw 3 simple stripes JES draw stripes
I need to make three stripes
first one needs to be 40% of the shape height and 256 pixels wide
the red component gradually increases from 0-255 and traverse the image horizontally
the second is 20% of the shape height, same width (height 300)
it is…

user2962833
- 1
- 2
0
votes
0 answers
Jython (JES) - Function for rotating a picture
I've been stuck on this problem for hours, and I just can't figure it out, or find any similar questions to help me. I have to write a function that takes in a picture and a number, and it rotates that picture left by the number. I found the…

user2917962
- 11
- 1
- 3
0
votes
2 answers
Passing values from function to function in JES/Jython
I am learning Jython using a program called JES, and I am having trouble understanding how to return values from a function that can be used in another function.
For example:
def driver():
picture = makePicture(pickAFile())
input(picture)
…

annidavenport
- 1
- 1
- 2
0
votes
3 answers
Python for loop parameters
Hi im just wondering what the 4 would do in this code
for y in range(0, height, 4):
Thanks

user2194374
- 123
- 3
- 4
- 9
0
votes
1 answer
Can't get my for loops to work
Okay, so I'm trying to have the program do three steps...
1: choose a number between (m,n) which are parameters being passed in (Set to variable "repeat")
2: choose a random number between 0 and the variable "repeat" from step one. (Set to variable…

Michael MacDonald
- 413
- 2
- 6
- 17
-1
votes
1 answer
How do I write coding using while loops and if statements in jes?
How do i write a code in JES program for cropping a specific image with a give coordinates and how do i write a code in JES program for pixelating an image using while loops and if statements? Also, how do i write code in JES program for blur heavy…

BB13
- 1
- 1
-1
votes
1 answer
Drawing a narrow filled arc in python
I am trying to draw a narrow filled arc in python--the height is small and the width is very wide. I want it to startX at 250, startY at 550, i want the width to be 245, the height to be 15... and then I am stuck.
I have tried a few different things…

JenTen10
- 123
- 1
- 2
- 9
-1
votes
1 answer
JES, nested if statement not working correctly
I keep encountering a runtime error resulting from a nested If then statement not working properly. Not very experienced with JES, so thus why I am reaching out for help. Basically, (see sourcecode below) my newX (is used w. function randrange to…

ohGosh
- 27
- 3
-1
votes
1 answer
Pictures do not go to their designated spots when copied to canvas
Link to code
I am attempting to move 5, individual pictures (as defined at the beginning of the code) and manipulate each picture in a different way. Each function that is used to manipulate a picture has a pretty obvious name for what is going to…

Chris
- 1
- 1
-1
votes
2 answers
`JES - Python, Even and Odd
I need to write a program that asks if a random number is even or odd, the user inputs the answer and then the program tells you if it is correct or incorrect. I do not know what to put in ans=raw_input("is" [random number] "Odd or Even?")
this is…

Lauren
- 33
- 4
-1
votes
1 answer
How do i maximize the color blue to 255 in python(JES)?
ive written this code to clear blue from a picture:
def clearBlue(picture):
for p in getPixels(picture):
setBlue(p,0)
Now i need to maximize the blue in the image(255), how can do that with this code?

Josh Gomez
- 1
- 4
-1
votes
1 answer
Hi, Looking for a JES alternative
I asked a variant of this question before and it got closed as "off topic", no idea why.
I'm studying Jython for uni and Hate using jython. I have tried using pydev but things like "pickAFile()" aren't recognised.
NameError: global name 'pickAFile'…

jams
- 39
- 1
- 1
- 10
-1
votes
1 answer
Write a function that asks the user to enter their name, age and height in meters and then display a customised message using a single print statement
name = requestString("Enter your name:")
age = requestNumber("Enter your age:")
height = requestNumber("Enter your height:")
print "Hello", name, "!", "i see that you are", num, "years old", "&", height, "tall"
Its not printing as i want it to…
user4701212