FUN WITH SHAPES INFORMATION PROCESSING 10 MR. MELLESMOEN.

Slides:



Advertisements
Similar presentations
I Spy! Shapes in our world.
Advertisements

First of all – lets look at the windows you are going to use. At the top you have a toolbar, with all your various tools you can use when customising your.
Area of Common Shapes.
Microsoft® Small Basic
Math and Card Games By: Candace DiBiano.
A Lesson in the “Math + Fun!” Series
Microsoft® Small Basic
Microsoft® Small Basic
A Surreal World. Joan Miro liked to use shapes like triangles, circles, stars and squares in his paintings. These are called geometric shapes.
Introduction to TouchDevelop
Microsoft® Small Basic The Math Object Estimated time to complete this lesson: 1 hour.
GEOMETRY Today we are going to learn about some geometric shapes...
Kindergarten Math Janelle Ward. Lesson Objectives Students will be able to identify and describe shapes 100% of the time. Students will be able to identify.
Perimeter & Area Lessons 19 & 20.
Click your mouse for next slide Flash – Introduction and Startup Many times on websites you will see animations of various sorts Many of these are created.
Microsoft® Small Basic
TURTLE GRAPHICS IP MR. MELLESMOEN. LOGO IN THE 1970’S THERE WAS A SIMPLE BUT POWERFUL PROGRAMMING LANGUAGE CALLED LOGO THAT WAS USED BY A FEW.
Introduction to TouchDevelop
Areas and Perimeter of Rectangles, Square, Triangles and Circles
This is the series In other words it is Consider the bars and how the represent the numbers in the sequence, and how the total sum of all.
Geometry 9-6 Geometric Probability. Example Find the probability that a point chosen randomly in the rectangle will be: Inside the square. 20 ft 10 ft.
Loops & Graphics IP 10 Mr. Mellesmoen Recall Earlier we wrote a program listing numbers from 1 – 24 i=1 start: TextWindow.WriteLine(i) i=i+1 If.
Variables. Todays Lesson  In todays lesson you are going to:  Learn to use variables  Learn to ask for user input  Learn to save the users response.
Microsoft® Small Basic Exploring Shapes Estimated time to complete this lesson: 1 hour.
CRE Programming Club - Class 5 Robert Eckstein and Robert Heard.
Using Geometric Shapes to Build 3-Dimensional Forms (solids)
Repeating patterns Can you work out the next shape in the pattern?
How many …?. What shape can you see? I can see some _____. Q1 Q1 stars.
SHAPES There are many shapes in our world. These are circles. Circles are never ending lines.
Homework Helper Chapter 12 Lesson triangles, 2 squares 2.2 rectangles and square 3.Possible answer: 3 sides; 3 vertices 4.Possible answer: shapes.
SHAPES IN MY WORLD BY PATRICK, JON, JACOB, AND CHANCE.
Functions. functions: a collection of lines of code with a name that one can call. Functions can have inputs and outputs.
9.1 PERIMETER AND AREA OF PARALLELOGRAMS Objective: Students find the perimeter and area of parallelograms.
Hackety Hack! Written by Krystal Salerno Presented by _______________.
8th Grade Math Unit 8 Review
Newsletter From Mrs. Wolfgang and Mrs. Griffin
Unit 5: Canvas Painter.
Here you can learn all about 2-D shapes
Element of Art: Shape Art 1.
How to calculate the area of a circle.
Name the shape below. rectangle rhombus square triangle A B C D
Microsoft® Small Basic
Area – Perimeter - Volume
UNIT 8: 2-D MEASUREMENTS PERIMETER AREA SQUARE RECTANGLE PARALLELOGRAM
2.5 Formulas and Additional Applications from Geometry
A Tiny Look at the Graphics Window
Basic Shapes ©
Microsoft® Small Basic
Microsoft® Small Basic
Fractions 1/2 1/8 1/3 6/8 3/4.
1-5 Geometric Formulas Polygons
Here you can learn all about 2-D shapes
Shapes.
Mod 2 Lesson 2 Repeating Debugging
Year 2 Autumn Term Week 6 Lesson 3
Year 2 Autumn Term Week 6 Lesson 3
Mod 2 Lesson 2 Repeating with loops
SPLITTING OF COMBINED SHAPES
A Tiny Look at the Graphics Window
Chapter Seven Construction and Scale Drawings
probability with cards
By- Sabrina,Julianna, and Killian
Shapes Unit 4 Fun with shapes.
Can you work out the next shape in the pattern?
Spell your name using word art from above
2D Shapes Rectangle Circle Triangle Rectangle. What shape is the door? Rectangle.
SHAPES IN ART.
This is a square. This is a square. How can you tell. How can you tell
Can you work out the next shape in the pattern?
Presentation transcript:

FUN WITH SHAPES INFORMATION PROCESSING 10 MR. MELLESMOEN

USING WHAT WEVE LEARNED Were going to have some fun in this chapter with whatever weve learned so far. This lesson contains samples that show some interesting ways of combining all that youve learned so far to create some cool looking programs.

RECTANGLOR! The following program will draw a series of rectangles increasing in size with each loop of the program. GraphicsWindow.BackgroundColor = "Black" GraphicsWindow.PenColor = "LightBlue" GraphicsWindow.Width = 200 GraphicsWindow.Height = 200 For i = 1 To 100 Step 5 GraphicsWindow.DrawRectangle(100 - i, i, i * 2, i * 2) EndFor

RESULT… It should look like this:

CIRCTACULAR! A variant of the previous program, draws circles instead of squares. GraphicsWindow.BackgroundColor = "Black" GraphicsWindow.PenColor = "LightGreen" GraphicsWindow.Width = 200 GraphicsWindow.Height = 200 For i = 1 To 100 Step 5 GraphicsWindow.DrawEllipse(100 - i, i, i * 2, i * 2) EndFor

RANDOMIZE! Im not even going to tell you what this creates, however if entered correctly it should be pretty cool. GraphicsWindow.BackgroundColor = "Black" For i = 1 To 1000 GraphicsWindow.BrushColor = GraphicsWindow.GetRandomColor() x = Math.GetRandomNumber(640) y = Math.GetRandomNumber(480) GraphicsWindow.FillEllipse(x, y, 10, 10) EndFor

PLAY WITH THE NUMBERS In your randomize program, play with some of the numbers to see what happens.

FRACTALS The program I will hand out draws a simple triangle fractal using random numbers. A fractal is a geometric shape that can be subdivided into parts, each of which resembles the parent shape accurately.

PLAY WITH THIS PROGRAM Insert the following line Program.delay (2) between GraphicsWindow.SetPixel(x, y, "LightGreen") EndFor Program.delay (2)

LAST CHANGE In your program you have the line: GraphicsWindow.SetPixel(x, y, "LightGreen") as your second last line of code. Replace that line with these lines: color = GraphicsWindow.GetRandomColor() GraphicsWindow.SetPixel(x, y, color)

DONE! Make sure you save your work