GRAPHICS MODULE 14 STUDY BOOK. Graphic commands SCREEN - puts the screen into graphics mode WINDOW - allows scaling of the screen LINE - 3 formats –LINE.

Slides:



Advertisements
Similar presentations
Noadswood Science,  To know how to use Python to produce windows and colours along with specified co-ordinates Sunday, April 12, 2015.
Advertisements

Introduction to Engineering MATLAB – 11 Plotting - 4 Agenda Multiple curves Multiple plot.
Introduction to Graphing Using MATLAB. Line Graphs  Useful for graphing functions  Useful for displaying data trends over time  Useful for showing.
Matlab Graphics S. Awad, Ph.D. M. Corless, M.S.E.E. E.C.E. Department University of Michigan-Dearborn Introduction to Matlab: 2D Graphics.
STROUD Worked examples and exercises are in the text PROGRAMME F4 GRAPHS.
To solve equations using Intersect method with a graphing calculator Process 1.Enter y 1 = (left side of the equation). ENTER 2.Enter y 2 = (right side.
Polar Coordinates. Butterflies are among the most celebrated of all insects. Their symmetry can be explored with trigonometric functions and a system.
Programming Lecture #2 CS 101 Autumn 2007 Tariq Jadoon.
Using Excel for Data Analysis in CHM 161 Monique Wilhelm.
Viewbox 4 Tutorial How to create a Template Please view this tutorial as a Slide Show in PowerPoint, because it contains animations that will not appear.
Introduction to MATLAB MECH 300H Spring Starting of MATLAB.
Graphics - setCoords. The coordinate system of Zelle graphics The default coordinate system for GraphWin is that the origin is in the upper left hand.
OBJECTIVES: 1. DETERMINE WHETHER A GRAPH REPRESENTS A FUNCTION. 2. ANALYZE GRAPHS TO DETERMINE DOMAIN AND RANGE, LOCAL MAXIMA AND MINIMA, INFLECTION POINTS,
TI89 and Voyage 200 Student Support Services Presented by Andy Williamson and Amanda Griffin.
VOCAB REVIEW. letters at the top of the worksheet window that identify the vertical information in a worksheet column headings Click for the answer Next.
Image Processing & Perception Sec 9-11 Web Design.
European Computer Driving Licence Syllabus version 5.0 Module 4 – Spreadsheets Chapter 22 – Functions Pass ECDL5 for Office 2007 Module 4 Spreadsheets.
Section 1.1 Graphs and Graphing Utilities. Points and Ordered Pairs.
Computational Biology, Part E Basic Principles of Computer Graphics Robert F. Murphy Copyright  1996, 1999, 2000, All rights reserved.
Solving and Graphing Inequalities in Two Variables.
Lecture 15: Intro to Graphics Yoni Fridman 7/25/01 7/25/01.
Using Pro-Engineer to Create 3 Dimensional Shapes Kevin Manner Kevin Manner Tim Reynolds Tim Reynolds Thuy Tran Thuy Tran Vuong Nguyen Vuong Nguyen.
Graphic Basics in C ATS 315. The Graphics Window Will look something like this.
CS1033 Pixel and Resolution
Engineering Drawing Standard Paper Size: A0: 841 x 1189 mm A1: 594 x 841 mm A2: 420 x 594 mm A3: 297 x 420 mm A4: 210 x 297 mm A: 8.5 x 11 in B: 11 x 17.
CSC 1010 Programming for All Lecture 7 Input, Output & Graphics.
1 Basic Computing Skills Dr Wenwu Wang Centre for Vision Speech and Signal Processing Department of Electronic Engineering
1-d Arrays & Plotting.
COMPASS Test Model Help What is the sum of the solutions of the equation  A. 8  B.-8  C. 2  D.-2  E. 15 Go on Calculator.
Data types S S T : S P R E A D S H E E T S SST 2 Spreadsheet 2 Data Types Name: ______________________ Class: ______________________.
Section 4.4. a) Factor x 2 + 5x - 36 (x + 9)(x – 4) b) Factor 2x 2 – 20x + 18 Hint: factor out a 2 first 2(x-9)(x-1) c) Factor 2x 2 + x – 6 Why doesn’t.
Equations of Circles. You can write an equation of a circle in a coordinate plane, if you know: Its radius The coordinates of its center.
Making Histograms with the TI-83 Plus Procedure Reference:
Computer Graphics CC416 Lecture 04: Bresenham Line Algorithm & Mid-point circle algorithm Dr. Manal Helal – Fall 2014.
 A sequence is a function whose domain is a set of consecutive integers. If a domain is not specified, it is understood that the domain starts with 1.
Section 1.1 Graphs and Graphing Utilities
Titles in Arial Bold 36 pt font Or you may wish to centre your title
Issued by: Ms.c. Ameer Mosa Thoeny reference:
Pixels, Colors and Shapes
Adapted from slides by Marty Stepp and Stuart Reges
(Sommet Bold, 60 pt font or, if not available, Arial, 60 pt font)
Image Processing & Perception
Polar Coordinates r   Pole Polar axis.
Section 1.1 The Distance and Midpoint Formulas; Graphing Utilities; Introduction to Graphing Equations.
Heading line 1 Heading line 2
CSc 110, Spring 2017 Lecture 6: Parameters (cont.) and Graphics
Microprocessor and Assembly Language
Midterm Review 3-1: One Type of Integral of a Function
Basic Graphics Drawing Shapes 1.
Creating Scatterplots
1.2 Introduction to Graphing Equations
Creating Scatterplots
Section 1.1 Graphs and Graphing Utilities
GRAPHING CALCULATOR Part 1
Day 3 – Graphs of Linear Equations
Section 1.1 Graphs and Graphing Utilities
CSc 110, Spring 2018 Lecture 9: Parameters, Graphics and Random
Day 3 – Graphs of Linear Equations
VIEWS OF A FIGURE You can see an object differently depending on your position.
Example 1: Finding Solutions of Equations with Two Variables
Chapter 2 Graphics Programming with C++ and the Dark GDK Library
CNC Milling/Lathe interface Introduction
Obtaining Information About The Drawing
Simultaneous Equations
Plotting Signals in MATLAB
Functions and Graphing
Drawing Graphs The straight line Example
Solving Systems of Equations and Inequalities
Aim: How do we graph lines using a table?
Presentation transcript:

GRAPHICS MODULE 14 STUDY BOOK

Graphic commands SCREEN - puts the screen into graphics mode WINDOW - allows scaling of the screen LINE - 3 formats –LINE between 2 points –LINE from current cursor position to new point –LINE - coordinates define diagonal points and connecting lines automatically drawn PSET - draws a single point

When graphing on paper graph equation –over what range –expected values –scale –draw axis –calculate point –draw point

Graph equation on Computer Put computer into graphics mode over what range expected values scale draw axis calculate point draw point SCREEN WINDOW LINE LOOP /EQUATION LINE or PSET

Example SCREEN 12 FOR t = 1 to 10 s = t ^ 3 / * t ^ LINE -(t, s) NEXT

Graphics Commands SCREEN mode - defines resolution (number of pixels) and colours available e.g. SCREEN 12 WINDOW (x,y)-(x1,y1) - scales screen –x,y define upper left corner –x1,y1 define lower right

Drawing Commands PSET [STEP](x,y)[, colour] PSET (50,50), 2 draws a point at coordinate 50,50 in a colour #2 (green) uses absolute coordinates - the expression of a pixel’s location in terms of its x and y coordinates

PSET STEP (20,4) draws a point that is 20 pixels to the right and 4 pixels down for the last point referenced uses relative coordinates - location is expressed in terms of the x and y distances from the last referenced point

LINE Statement LINE [(x1, y1)] - (x2, y2) [, colour] [, B[F]] LINE (0,0) - (320,240), 4 draws a line from 0,0 (upper left) to 320,240 (centre) in red ( assuming no WINDOW) adding the B command draws a box whose diagonal coordinates are 0,0 and 320,240 in red adding a BF command draws a solid box as above in red

LINE - (639,479) draws a line from the current cursor position to point 639,479 (lower right) (again assuming no WINDOW statement)

Colours

SCREEN 12 WINDOW (-2, 130)-(15, -50) LINE (0, -50)-(0, 130), 3 LINE (-2, 0)-(15, 0), 3 PSET (0, 6) FOR t = 1 TO 10 STEP.01 s = t ^ 3 / * t ^ LINE -(t, s) NEXT LOCATE 10, 20 PRINT "graph f(t)" LOCATE 27, 65 PRINT "time,t, sec" graph equation –over what range –expected values –scale –draw axis –calculate point –draw point –loop until range exceeded

Adding text to graphics LOCATE row, column PRINT “text”, variables –text row between 1 and 30 and column between 1 and 80 –separate from graphics scaling –number of rows and columns depends on screen type and mode COLOR number –number defines colour, between 0 and 15 –all following printing will be done in this colour