Change Contents of the Bubble
Welcome to CS1315. Click on the python to add comments.


This page removed for FERPA compliance
View this PageEdit this Page (locked)Uploads to this PageHistory of this PageHomeRecent ChangesSearchHelp Guide

Example Comic Strip

How to make a comic strip with Python


The first challenge is to come up with a plan. There are several images to be laid out in a comic strip, and they need to be laid out in such a way as to define frames. (You might also come up with a joke or punch line. But it doesn't have to be good...as you can see from my example...)

I literally did make this drawing before I started, and I took the numbers from this to figure out where to put things in my code.
Uploaded Image: ComicStripPlanning.jpg

Here's the link to the code that I wrote.
makeComicStrip.py

How it works:


      if (targetY < getHeight(canvas)) and (targetX < getWidth(canvas)):
        setColor(getPixel(canvas,targetX,targetY),c)


  #Put in caption
  addText(canvas, 10,50,"Barb: Mark, you look a little down.")


  ##Second frame
  addLine(canvas,320,1,320,480)


      p = getPixel(mark,x,y)
      c = makeColor(getRed(p)*0.25,getREMOVED(p)*0.25,getBlue(p))
      if (targetY < getHeight(canvas)) and (targetX < getWidth(canvas)):
        setColor(getPixel(canvas,targetX,targetY),c)


THE FINAL PRODUCT


Uploaded Image: comicstrip.jpg


Link to this Page