For every action, there is an equal and opposite criticism.
— Steven Wright
We’re getting a bit further into image manipulation. I’ll show you how an actor can change appearance by dynamically changing its image while the program is running.
Concepts discussed: image manipulation, random numbers
How can we add anti-alias ? the edge of the balls looks distroted.
The image itself can be anti-aliased by an image editor with this capability (e.g., Photoshop, GIMP).
Thanks for getting out so many new videos.
Our class is just finishing the Piano and our assignment is to create some sort of visual effect when keys are pressed, so these videos will help a lot.
The size of the lessons that you are presenting is great because they are self contained, smaller bits that aren’t at all overwhelming in scope.
Keep up the good work!
@Deepraj Anti-aliasing can be switched on/off in general Java options (when the virtual machine is started) on some systems that support it. We cannot easily do that from within our code.
@DianaL This may now be too late (in case your assignment is over) but Episode 23 and 24 (just published now) should be useful for this too!
Pingback: #JOC21: Image Manipulation Take Two - compu2Learn.co.uk
Why do the balls teleport when they reach the edge and change colour? On mine, only the large balls are immune, whilst the smaller ones behave bizarrely by disappearing when they get near the wall and then reappearing where they would have bounced too. Can anyone help me?
Very, and I mean very, late response, but you can scale the image to the size of the ball and it fixes that bug.