View this PageEdit this PageAttachments to this PageHistory of this PageHomeRecent ChangesSearch the SwikiHelp Guide
Hotspots: Admin Pages | Turn-in Site |
Current Links: Cases Final Project Summer 2007

Questions By Troy Brant on Spring 2005 M6

We've set up two times for you to return your PDA: 1-3 on Tuesday (5/3) and 2-4 on Wednesday (5/4). You MUST return your PDA for your team to earn a grade for the course, so you have plenty of incentive to make sure it gets done. During one of the allotted times bring your PDA to the 3rd floor of TSRB and look for David White either outside my office or in the NW corner of the floor. Hand it directly to him, and make sure he has your team checked off as returning its PDA.

Jeff

Will presenting the project in class count as our M6 demo, or should we demo the project to the TA outside of class? Also, what kind of format should we use to present our project? In particular, powerpoint format vs. an actual demonstration? Do we need to demonstrate that it works on the PDA? Thanks.

Troy Brant

The final presentations are just a chance to show off the cool stuff you did and to talk about some of the lessons you learned. Groups presenting will ideally demo their projects (it's ok to show the PDA version on the desktop, since demoing off a PDA to large crowd is logistically difficult), talk a little bit about how their design changed (using PowerPoint is fine), and talk a little about the lessons they learned (working in groups, designing for multiple platforms, etc).

Note that doing the final presentation is not considered demoing to your TA (since your TA may not be there), but we don't absolutely require that you demo to your TA anyway. We just highly recommend it; you'll do a better job showing off your system than the TA will trying to figure out how to use it.

Jeff

Why won't the following code draw with the given Pen color?
	form _ Form extent: 500@500.
	pen _ Pen newOnForm: form.
	pen defaultNib: 3.
	pen color: Color blue.
	pen up.
	pen goto: 50@50.
	pen down.
	pen goto: 200@50.
	pen goto: 200@200.
	pen goto: 50@200.
	pen goto: 50@50.

	imgMorph _ ImageMorph new.
	imgMorph setNewImageFrom: form.
	imgMorph openInWorld

After trying the code in a workspace, you'll find that the pen color is in grayscale. It works if there is no form involved, like this:
        pen _ Pen new.
	pen defaultNib: 3.
	pen color: Color blue.
	pen up.
	pen goto: 50@50.
	pen down.
	pen goto: 200@50.
	pen goto: 200@200.
	pen goto: 50@200.
	pen goto: 50@50.

As far as I know, I have to use the form to add the drawing to the correct position for our application. So I can't just not implement the pen without the form. Thanks for the help.

Troy Brant

The problem is that the Form you're creating is black and white by default. You need to tell it to use a different color depth, like so:
	form _ Form extent: 500@500 depth: Display depth.
	form fillColor: Color white.
	pen _ Pen newOnForm: form.
	pen defaultNib: 3.
	pen color: Color blue.
	pen up.
	pen goto: 50@50.
	pen down.
	pen goto: 200@50.
	pen goto: 200@200.
	pen goto: 50@200.
	pen goto: 50@50.

Jeff

Why won't the following code rotate an image?
angle _ 0.
form _ Form fromFileNamed: 'bus.jpg'.
[Sensor anyButtonPressed] whileFalse: [
	angle _ angle + 5.
	form rotateBy: angle.
	form display.
].

The image just appears in the top left corner and doesn't change. I used slide 21 from the Joe The Box slides from theSpring 2005 Class Schedule page as an example.

Troy Brant

form rotateBy: angle creates a new form; you're displaying the old, non-rotated one instead of the new one. Try the following: (form rotateBy: angle) display

Jeff


Curious about whether your M6 is officially approved? Check the Spring 2005 Approved M6s list. If you think your team should be listed and it isn't, drop me email ASAP.

Jeff

Link to this Page