A new human-computer interface?

Slides:



Advertisements
Similar presentations
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.
Advertisements

Python Turtle Mini-Course. Operations go( n ) # n est un nombre turn ( d ) # d est longle color (green) width ( n ) invisible ( ) visible ( ) pen_up.
Noadswood Science,  To understand the flow procedure when writing programs Thursday, January 15, 2015.
CS 100: Roadmap to Computing Fall 2014 Lecture 02: Fun With Turtles.
COMPSCI 105 S Principles of Computer Science
PYTHON TURTLE WORLD : CHAPTER 4 FROM THINK PYTHON HOW TO THINK LIKE A COMPUTER SCIENTIST.
Congruence and Similarity
Introduction to TouchDevelop
EECS 110: Lec 6: Fractals and Trutles Aleksandar Kuzmanovic Northwestern University
CS 5 Today CS 5 alien on strike! Claremont residents report droplets of water falling down-ward from the sky: unexplained meteorological phenomenon causes.
1 The Polygon angle- sum theorems Chapter 6 Section 1.
Log on and Download from website:
Programming Training kiddo Main Points: - Python Statements - Problems with selections.
Fall Week 3 CSCI-141 Scott C. Johnson.  Say we want to draw the following figure ◦ How would we go about doing this?
B.A. (Mahayana Studies) Introduction to Computer Science November March Logo (Part 2) More complex procedures using parameters,
Microsoft® Small Basic
Python Programming in Context Chapter 9. Objectives To introduce functional programming style To practice writing recursive functions To introduce grammars.
Computer Science 111 Fundamentals of Programming I Introduction to Graphics.
1 CSC 221: Computer Programming I Fall 2011 Fun with turtle graphics  turtle module  relative motion (setup, reset, left, right, forward, backward) 
Main Points: - Python Turtle - Fractals
Class 2 Introduction to turtle graphics
Introduction to Algorithms using Netlogo. What’s an Algorithm Definitions of Algorithm on the Web: –A procedure or formula for solving a problem.
1 Turtle Graphics and Math Functions And how you can use them to draw cool pictures!
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
MSW Logo By Awin 9s.
Chapter 1. Objectives To provide examples of computer science in the real world To provide an overview of common problem- solving strategies To introduce.
EECS 110: Lec 6: Fractals and Trutles Aleksandar Kuzmanovic Northwestern University
IS 313: Putting loops to work for you What's next? [ 1, 11, 21, 1211, , ? ] [ -35, -24, -13, -2, 9, 20, 31, ? ] [ 2, 22, 222, ? ] [ 26250, 5250,
CONTROL SYSTEMS Control Systems A command is a directive that performs a specific task An argument is a variable that can be used by the function reveiving.
Microsoft® Small Basic Collision Detection Estimated time to complete this lesson: 1 hour.
CS 121 Today Fractals and Turtles! The Koch Curve how random…
EECS 110 Recitation #3 Ning Xia Northwestern University.
1 Computer Science of Graphics and Games MONT 105S, Spring 2009 Session 4 Conditionals Turtles.
Polygons – Angles In Regular Polygons Regular Polygons have equal sides and equal angles, So if we can find one side, we would know the measure of all.
Programming Training kiddo Main Points: - Python Statements - Problems with selections.
Let’s Learn 3. Modules Saenthong School, January – February 2016
Increase the number of lines before coming back to the origin … triangle square Draw a circle.
First of all – lets look at the window’s you are going to use. At the top you have a toolbar, with all your various tools you can use when customising.
Turtle Graphics Let’s see what we can draw on Python!
Turtle Graphics Lesson 2 1. There are 3 homeworks to complete during the six lessons of this unit. Your teacher will let you know when a homework has.
1-2 Order of Operations Objective: Use the order of operations to evaluate expressions.
Experimenting with Grammars to Generate L-Systems – in JFLAP March 31, 2011 Prof. Susan Rodger Computer Science Dept.
EECS 110: Lec 7: Program Planning Aleksandar Kuzmanovic Northwestern University
Using Logo to explore spiral patterns. Paul Broadbent Spiral patterns This is a (1,2,3) spiral path. It repeats lines of three.
Cyriak: conceptually disruptive recursion…
Python Turtle Graphics
Graphics CIS 40 – Introduction to Programming in Python
CS 5 Today hw2 due Monday… Lots of tutoring… Fractals and Turtles
Introduction to Python
Add and Subtract Negative Numbers
Using Logo to develop logical thinking
LOGO BY Kaotip 9S.
Main Points: - Python Turtle - Fractals
General Form for a Conditional
EECS 110: Lec 7: Program Planning
Perimeter.
EECS 110: Lec 6: Fractals and Trutles
We are removing the 4th part of hw2pr2 for now.
Frozen Graphics Lesson 3.
البرمجة مع لغة PYTHON TURTLE
Polygons – Angles In Regular Polygons
CSc 110, Autumn 2017 Lecture 9: Graphics and Nested Loops
Exercise (1) What does function chai draw? def chai(size):
Let's Learn Python and Pygame
Chap. 3 Functions Start Python IDLE (Shell) and open a new file.
Main Points: - Python Turtle - Fractals
Section 3 Programming with Turtle Graphics
Introduction to Turtle Graphics
Background for lab: the ord() function
Presentation transcript:

A new human-computer interface? Python's Etch-a-Sketch from turtle import * reset() left(90) forward(50) right(90) backward(50) down() or up() color('green') tracer(1) or tracer(0) width(5) done() and lots more! degrees! states if the pen draws or not states if the pen animates or not A new human-computer interface?

Recursive Graphics (1) Could we tri this with recursion? (2) there is no tri … (1) Could we tri this with recursion? def tri(): """ draws a polygon """ forward(100) left(120) (2) Could we create any regular n-gon?

(1) What does chai draw? def chai(size): """ mystery! """ forward(size) left(90) forward(size/2.0) right(90) backward(size) Why are there two identical commands in a row? How could you add more to each end?

close-up of innermost part of the spiral… 81 72.9 90 close-up of innermost part of the spiral… spiral( 100, 90, 0.9 ) 100 spiral( initLength, angle, multiplier )

svTree( trunkLength, levels ) and more! (if you want)

Help! My turtle window froze! Your turtle window becomes unresponsive after your program runs. Type: >>> done() to unlock it (but then you have to close it)

The Koch curve snowflake( 100, 0 ) snowflake( 100, 1 )

Have fun! fill(1) color("blue")