Unit 5: Canvas Painter.

Slides:



Advertisements
Similar presentations
Introducing Macromedia FreeHand MX
Advertisements

Lab 10: Images and Skinning, Sound and Assets User Interface Lab: GUI Lab Oct. 30 th, 2013.
1. Tuesday: Halloween Shoot due TOMORROW. You must make a contact sheet of your photos and print it from my computer tomorrow. -5 pts for every day I don’t.
Introduction to Geometry Designer For iPad. Launching the App To turn on the iPad, press the Home button Find the Geometry Designer app and tap on it.
Microsoft® Small Basic
© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Tutorial 21 - “Cat and Mouse” Painter Application.
CIS101 Introduction to Computing Week 12. Agenda Your questions Solutions to practice text Final HTML/JavaScript Project Copy and paste assignment JavaScript:
Working with Vector Graphics – Lesson 21 Working with Vector Graphics Lesson 2.
PowerPoint Lesson 3 Working with Visual Elements
DIGITAL GRAPHICS & ANIMATION
Digital Art in Scratch part 1 Barb Ericson Georgia Tech Oct 2010.
Introduction to Venn Diagrams SP This is a Venn diagram for two terms. We can conceive of every element of S as being within the boundary of the S circle.
Chapter 3 Working with Symbols and Interactivity.
XP Tutorial 5 Buttons, Behaviors, and Sounds. XP New Perspectives on Macromedia Flash MX Buttons Interactive means that the user has some level.
Lehigh University Introduction to Flash MX Sharmeen Mecklai.
© 2011 Delmar, Cengage Learning Chapter 3 Working with Symbols and Interactivity.
Working with Symbols and Interactivity
© 2010 Delmar, Cengage Learning Chapter 3: Working with Symbols and Interactivity.
Lab 6: event & input intro User Interface Lab: GUI Lab Oct. 2 nd, 2013.
© 2011 Delmar, Cengage Learning Chapter 1 Getting to Know Illustrator.
Hello, little turtles. Hello, little turtles! There are many modules in Python that provide very powerful feature that we can use in our own program.
A lesson approach © 2011 The McGraw-Hill Companies, Inc. All rights reserved. a lesson approach Microsoft® PowerPoint 2010 © 2011 The McGraw-Hill Companies,
Introduction to Microsoft publisher
Introduction to Processing. 2 What is processing? A simple programming environment that was created to make it easier to develop visually oriented applications.
Digital Art in Scratch part 1 Barb Ericson Georgia Tech May 2011.
© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Tutorial 21 - “Cat and Mouse” Painter Application.
Working With Visual Elements
Graphics Concepts CS 2302, Fall /17/20142 Drawing in Android.
Getting started with the turtle Find the latest version of this document at
How to create with the Photoshop Stamp tool?. The Photoshop Stamp Tool Allows you to create new visual elements inside of an image Has Two Tool Options.
School of Computing and Information Systems RIA Animation, part I.
Paint Tutorial Created February 2006 Start Paint: Start>Programs>Accessories>Paint.
© 2010 Delmar, Cengage Learning Chapter 11 Creating and Using Templates.
Aim: What is a Bezier curve? Ms. Edelman Technology Tuesday, 2.12.
Create a space Using the box Draw tool for your image.
Adobe Illustrator CS5 - Illustrated Unit B: Performing Essential Operations.
Animations & Multimedia LESSON 9 #2.09 USING ANIMATION AND MULTIMEDIA.
Adobe Illustrator CS Design Professional WITH ILLUSTRATOR GETTING STARTED.
FOP: Multi-Screen Apps
Introduction to Microsoft publisher
Canvas and Arrays in Apps
Introduction to Event-Driven Programming
FOP: Buttons and Events
Introduction to Microsoft publisher
Creating Vector Graphics
13 Enhancing the Wage Calculator App
Fill and Stroke Stroke is the outline of a shape, text or image.
Lesson 1: Buttons and Events – 12/18
Introduction to Events
Lesson 10: Building an App: Color Sleuth
Learning to program with Logo
Improvements To build on Y7 Sol..
Module 1: Getting Started with Windows 95
Building an App: Multi-Screen App
Exercise 28 - Skills Vector tools enable you to create perfectly formed shapes and lines of all sorts. What’s more the vector objects keep their shape.
Chapter 7 Vector Editing
Lesson 4: Controlling Memory with Variables
Lesson 17: Building an App: Canvas Painter
SmartArt Graphics Guided Lesson.
HAPPY NEW YEAR! Lesson 7: If-statements unplugged
Creating Advertisements
Unit 11 – PowerPoint Interaction
Arrays
Visual programming Chapter 2: Events and Event Handling
Working with Symbols and Interactivity
Professor John Canny Spring 2004 March 5
Performing Essential Operations
Design and Layout (part one)
University of Warith AL-Anbiya’a
Professor John Canny Spring 2003 March 12
Presentation transcript:

Unit 5: Canvas Painter

Introduction: Today we are going to be building a drawing app in App Lab. Along the way, we’ll be introduced to a couple new ideas and concepts, but for the most part, we will be combining old skills. At this point, you all know most of the core concepts of programming. As we move forward, we’ll spend more time thinking about interesting ways to combine them.

Canvas: Today you will build an app that uses Canvas, a feature provided by JavaScript. We are going to combine our knowledge of arrays and conditional statements with this new feature. Canvas is simply a UI element that you can add to your screen in design mode. Simply drag the icon to the screen and give it an appropriate ID. With Canvas you can create simple geometric figures like lines, circles and rectangles. Combine Canvas with other programming concepts and you can do a lot of interesting things.

setFillColor and setStrokeColor: Two commands you will use are setFillColor and setStrokeColor. setStrokeColor is used to determine the color for the outline of the shape setFillColor is used to determine the color of the inside of the shape The circle to the right has a stroke color of yellow and a fill color of black.

Event Parameter: You will also learn more about the event handler we’ve previously used to figure out which key a user pressed. The event parameter can tell you whether or not a certain key was pressed like shift or Alt. The event parameter can also tell you where the mouse was located when you clicked somewhere on the screen. You will use some of this information provided by the event parameter to make your app much more interesting.

Events and Arrays You can store the event parameters inside an array so you can use the information contained within each event to recreate your drawing or maybe create some different visual effect with your original drawing. Use the dot ( . ) operator to access elements within the event itself. You will be combining your knowledge of arrays and for loops to create all the visual effects you will see today. Also you will be using nested loops in this lesson. Loops within loops Make sure to read all of the direction when completing this lesson.