Graphics - setCoords. The coordinate system of Zelle graphics The default coordinate system for GraphWin is that the origin is in the upper left hand.

Slides:



Advertisements
Similar presentations
Line Drawing Algorithms
Advertisements

EZ Grade Pro Becky Koss French & Spanish Teacher Lake-Lehman Sr. High School.
Graphics Shapes. Setup for using graphics You have to import the graphics library You can use either “import graphics” or “from graphics import *” or.
Solving Equations by Graphing - Y2=0 Method Move all terms to the left hand side of the equation, so that zero is on the right hand side. Example Solve.
Mrs. Navickas Algebraically: 1 Solve for y, if necessary. If equation is given equal to zero or a y is not present, rewrite in descending powers of x.
MiPACS Dental Enterprise Viewer
C HAPTER 18: E LECTRONIC S PECIAL E FFECTS. V OCABULARY : Chromakey: Type of key effect where a specific color can be blocked from the key camera’s input.
C HAPTER 20: G ETTING T ECHNICAL – T HE V IDEO S IGNAL.
THE STENOTYPE MACHINE AND KEYBOARD.
Click your mouse for next slide Dreamweaver – Merging, Coloring, Fonts Now it’s time to fill your page with some more interesting stuff The first thing.
The Cartesian Coordinate System
Java ThreadsGraphics Programming Graphics Programming: Graphics Devices.
Using Paint.net Skills: change view, rotate, select a portion of, crop, resize, change contrast, filter an image, undo an operation IT concepts: pixel,
Graphics Device Principles B.Sc. (Hons) Multimedia ComputingMedia Technologies.
Display of Objects on Screen. COUNTERS b A horizontal counter represents the horizontal position of the monitor’s electron beam. b A vertical counter.
Advanced Tool Management Information Module Advanced Tool Management Information Module.
Graphics Device Principles B.Sc. (Hons) Multimedia ComputingMedia Technologies.
1 Python Programming: An Introduction to Computer Science Chapter 3 Objects and Graphics.
Descartes’s Rule of Signs & Bounds: Things that make your life easier TS: Making decisions after reflection and review.
Creating a MagicInfo Pro Screen Template
Copyright © 2013 Pearson Education, Inc. All rights reserved Section 1.1 The Distance and Midpoint Formulas; Graphing Utilities; Introduction to Graphing.
EDT Chapter 41 Coordinate Systems Cartesian, Relative and Polar Sacramento City College EDT 310.
Graphical Analysis Tutorial Version GA 3.2. Entering Data Enter your independent (x) data and dependent (y) data into the columns shown By double-clicking.
Atoms, Ions and Isotopes
New Log In Procedures for Students Using City Schools Computers.
PROC GREPLAY With Templates December 5, 2008 Barry Hong Process Analysis and Simulation U. S. Steel Canada © 2008 United States Steel Corporation.
Video Monitor Uses raster scanning to display images –Beam of electrons illuminates phosphorus dots on the screen called pixels. Starting at the top of.
Computational Biology, Part E Basic Principles of Computer Graphics Robert F. Murphy Copyright  1996, 1999, 2000, All rights reserved.
Objectives Differentiate between raster scan display and random scan display.
Getting Started With AutoCAD ENGR 2 Week #1 Laboratory.
CGMB214: Introduction to Computer Graphics
Introduction to Graphical Hardware Display Technologies
Introduction to Windows. OBJECTIVE & BELL WORK – MON. DAY 1 WEEK 5  BELL WORK QUESTION: WHAT CAN YOU DO TO A COMPUTER WINDOW. NAME 3-- EXAMPLE: YOU CAN.
Lesson 7 Rectangular Objects. Rectangle Command Rectangles with Vertices on the Origin Start from the origin End at the origin.
Practice Session 1 1.Hyperlink the three views of Slide no 2 with corresponding slide no. given in the presentation. 2.Hyperlink Back button given in each.
Introduction to Windows Created by Mrs. Leverette.
Effective SAS greplay’ing and how to avoid stretching By David Mottershead Senior Programmer, Quanticate.
1 Sung-Ju Kang Department of Physics Kangwon National University Basic Concept of The Computer Graphic. For the investigation of the physical problem by.
AutoCAD 3D Fundamentals
GRAPHICS MODULE 14 STUDY BOOK. Graphic commands SCREEN - puts the screen into graphics mode WINDOW - allows scaling of the screen LINE - 3 formats –LINE.
Data Representation The storage of Text Numbers Graphics.
Interior Design II: Objective 5.02
Computer Graphics, KKU. Lecture 41 The Computer Programming Laws Any given program, when running, is obsolete. Any given program costs more and.
COMPUTER PROGRAMMING I SUMMER 2011 Objective 8.01 Understand coordinate systems. (3%)
Tool Management Screen Information Module Tool Management Screen Information Module.
Using the triple beam balance. Using the Balance 1)Zero the balance 2)Put the object on the pan 3)Slide the heaviest rider until the pointer drops, back.
Digital Media Lecture 5: Vector Graphics Georgia Gwinnett College School of Science and Technology Dr. Jim Rowan.
Coordinate Systems Lecture 1 Fri, Sep 2, The Coordinate Systems The points we create are transformed through a series of coordinate systems before.
Lecture 13: Raster Graphics and Scan Conversion
CS 115 Lecture 7 Graphics – coordinate systems, Text, Entry, aliases Taken from notes by Dr. Neil Moore.
1.  The primary output device in a graphics system is a video monitor. These monitors are based on Cathode Ray Tube (CRT) design.  CRT is a vacuum tube/electron.
CS 115 Lecture 6 Graphics Taken from notes by Dr. Neil Moore.
x y.
Dilations A dilation is a transformation that produces an image that is the same shape as the original, but is a different size. A dilation stretches or.
Graphics Michael Liut ( ) Ming Quan Fu( ) Brandon Da Silva(
Computer Graphics Lecture 4 Computer Graphics Hardware
Computer Graphics Lecture 3 Computer Graphics Hardware
Concept Question Assume in each of the figures below, the number of charges drawn represents the actual density of charges moving, and the arrows represent.
How to add a network printer in Windows 7
Graphics Fundamentals
Microprocessor and Assembly Language
Digital Media Dr. Jim Rowan ITEC 2110.
Drawing with Precision
Word 2007 Basics TCC July 2011.
Labelling Features on Photographs BOTTOM LEFT HAND CORNER
Transformations for GCSE Maths
It’s a Little Thing Called Life: What’s Your Story?
Limits.
X O X O X O X O X O X O X O X O X O X O
Coordinate Systems Cartesian, Relative and Polar
Presentation transcript:

Graphics - setCoords

The coordinate system of Zelle graphics The default coordinate system for GraphWin is that the origin is in the upper left hand corner of the window Y coordinates increase as they go down the window, X coordinates increase as they go to the right in the window This is actually caused by history – the first display devices (CRTs) used electron beams to turn on pixels on the physical display screen, and the beams scanned starting in the upper left corner of the screen, working its way across the screen, then back to the left edge of the screen and down one row, etc. until lower right hand corner was reached, then the whole thing started over again

setCoords There is a method for GraphWin objects which will let you change the origin to any place on the window that you wish Some people find this easier to deal with than the default The same method also allows you to scale the coordinates of the window (to be more compatible with the rest of your program) You call the method as “win.setCoords(llx, lly, urx, ury)” Where llx and lly are lower left x and y, urx and ury are upper right x and y

setCoords (0, 0, 10, 20) Would mean that the lower left corner of the window is considered to be zero, zero (x and y are both zero) And the upper left corner of the window would be considered (10, 20) Note that the default size of a graphics window is 200 x 200. After setCoords, the x distance is divided into 10 units and the y distance into 20 units. This makes it possible to use floating point numbers as coordinates, like (5.5, 8.2) Sketch on next slide

setCoords(0, 0, 10, 20)