Create a comic strip by putting three to four pictures next to each other horizontally and adding text.
This could be done with several methods, but one can also use a single method like the below to put together the image. The point of the question is simply to make a comic strip with JES though. The function will work for three pictures in a row all of the same height.
```
def makeAComic(picture1, picture2, picture3, text1, x1, y1, text2, x2, y2, text3, x3, y3):
width1 = getWidth(picture1)
width2 = getWidth(picture2)
width3 = getWidth(picture3)
height = getHeight(picture1)
canvas = makeEmptyPicture ((width1+width2+width3) ,height)
targetX = 0
for sourceX in range(0,width1):
targetY = 0
for sourceY in range (0 ,height):
color = getColor(getPixel(picture1,sourceX,sourceY))
setColor(getPixel(canvas ,targetX ,targetY), color)
targetY = targetY + 1
targetX = targetX + 1
targetX = 0
for sourceX in range(width1,(width1+width2)):
targetY = 0
for sourceY in range (0 ,height):
color = getColor(getPixel(picture2,sourceX,sourceY))
setColor(getPixel(canvas ,targetX ,targetY), color)
targetY = targetY + 1
targetX = targetX + 1
targetX = 0
for sourceX in range((width1+width2),(width1+width3+width3)):
targetY = 0
for sourceY in range (0 ,height):
color = getColor(getPixel(picture3,sourceX,sourceY))
setColor(getPixel(canvas ,targetX ,targetY), color)
targetY = targetY + 1
targetX = targetX + 1
addText(canvas, x1, y1, text1)
addText(canvas, x2, y2, text2)
addText(canvas, x3, y3, text3)
```
You might also like to view...
How does the operating system use paging to enhance the use of memory?
What will be an ideal response?
An encrypted file cannot be opened without a password
Indicate whether the statement is true or false
An example of a shape effect is ____.
A. Glow B. Soft Edges C. Bevel D. all of the above
Using a work breakdown structure (WBS) allows one to manage a project as one large task.
Answer the following statement true (T) or false (F)