Reference no: EM132851659
Hour of Code - Programming Assignment
Download, read and follow the directions in the attached document.
Draw a picture made of ellipses and rectangles!
For example, you could make a selfportrait, an alien creature, or something more abstract. itll just be black and white for now, well get to color in the next video.
You can work on your own pace, but we recommend approximately ten minutes on this assignment before moving on.
Reminders
To draw a rectangle: rect (a,b,c,d); To draw an ellipse: ellipse(a,b,c,d);
a - X (horizontal) location of the shape's upper-left corner
b - Y (vertical) location of the shape's uppper-left corner
c - width of the shape
d - height of the shape
Add color to your design!
You can build off the example below or add to your previous design by selecting -My Code from Last Lesson* under the -Code menu below. You can work on your own pace, but we recommend approximately ten minutes on this assignment before moving on.
Reminders
Set the background color: bockgrcvnd(r,g,b);
Set the outline color: st roke(r,g,b);
Set the interior color: fill(r,g,b);
Don't forget, you need to call stroke() and fill() before you draw the shape!
r - amount of red, from 0 (none) to 255 (maximum)
g - amount of green, from 0 (none) to 255 (maximum)
b - amount of blue, from 0 (none) to 255 (maximum)
Animate your program using mouseX and mouseY!
You can build off the example below or add to your previous design by selecting 'My Code horn Last Lesson' below. You can work on your own pace. but we recommend approximately ten minutes on this assignment before moving on if you forget the syntax for setup() and draw() . here is a reminder!
void setup() size(500,400); }
void draw() background(0,0,0);
M1(255,255,255);
ellipse(mouseX,mouseY,60,60);
)
We recommend a maximum canvas size of 500 by 400 pixels for this tutorial. but feel free to experiment your window skinnier or shorter!
Use a mouse press to change what your program is doing!
You can build off the example below or add to your previous design by selecting 'My Code from Last Lesson' below. You can work on your own pace, but we recommend approximately ten minutes on this assignment before moving on.
Final step:
1. Continue to edit your code as much as you would like on your original image.
2. Make sure your last block of code includes elements from each section of the tutorial.
3. When you finish, click the Share button.
4. At the Confirm dialog box hit Continue. It is your choice whether or not you want to, "Share in gallery."
5. Copy the link in the next dialog box and pate it into a Word document that I can see your final creation.
6. In that document also past a copy of your last block of code.
7. I will run your block to make sure it creates the same image.
8. Finally, paste a screen shot of after you finish the Questions section. Make sure I can see the date and time in the status area of your screen shot. Submit this document into the Blackboard assignment link.
9. Upload your certificate of completion in Blackboard assignment link.
Attachment:- Programming Assignment Option.rar