How to Create Graphics in a JES Application

JES is a programming environment that lets you edit photos, videos, and sound. JES allows you to select an image and change the color of each pixel. This programmatic approach enables you to edit images in interesting ways.

JES also includes built-in functionality to add your own graphics onto images. This includes lines or shapes such as rectangles, ovals, and circles.

4

How to Create an Empty Canvas in JES

You canrender existing images using JES, including those that a user has stored on their computer, that they select to upload. If you want to draw your shapes on a blank image, you’re able to use the built-in makeEmptyPicture() function to create a new empty canvas instead.

How to Create and Add Rectangles

You can use JES to create shapes such as rectangles. In JES, x and y coordinates start from the top-left corner of the image, instead of the bottom-left corner.

Use the built-in addRect() function to draw a rectangle onto an empty picture.

Code on computer on desk with car wallpaper on a second screen

How to Create and Add Circles and Ovals

You can use the built-in addOval() function to create both ovals and circles. If you are creating a circle, make sure the width and height of the oval are equal.

How to Create and Add Lines

Use the addLine() function to draw lines on your empty image in JES.

Drawing Your Own Shapes in JES

You should now be able to draw your own shapes in JES. You can start getting more creative with some of the other interesting image-processing techniques on offer.

If an AI can roast you, it can also prep you for emergencies.

Load program and save dialog

Make sure you don’t miss these movies and shows before Netflix removes them.

I gripped my chair the entire time—and then kept thinking about it when the screen turned off.

Create empty picture function in command line

My iPhone does it all, but I still need my dumb phone.

Don’t let aging hardware force you into buying expensive upgrades.

New window showing empty canvas

You don’t need to fork out for expensive hardware to run an AI on your PC.

Technology Explained

PC & Mobile