COLOR WALL Boston Python Workshop

Similar documents
Pantone Matching System Color Chart PMS Colors Used For Printing

How To Color Print

PANTONE Solid to Process

Green = 0,255,0 (Target Color for E.L. Gray Construction) CIELAB RGB Simulation Result for E.L. Gray Match (43,215,35) Equal Luminance Gray for Green

Pantone Color Chart Plexiglas Cross Reference

Tabla de conversión Pantone a NCS (Natural Color System)

Process Yellow PMS 100 PMS 101 PMS 102 Pantone Yellow PMS 103 PMS 104 PMS 105 PMS 106 PMS 107 PMS 108 PMS 109 PMS 110 PMS 111

Understanding, Identifying & Analyzing Box & Whisker Plots

Lottery Looper. User Manual

Organizing image files in Lightroom part 2

PANTONE Coated Color Reference

Important Notes Color

1. Three-Color Light. Introduction to Three-Color Light. Chapter 1. Adding Color Pigments. Difference Between Pigments and Light. Adding Color Light

Lithichrome Stone Paint- LT Blue Gallon Lithichrome Stone Paint- Blue 2 oz Lithichrome Stone Paint- Blue 6 oz

CITY OF BURLINGTON PUBLIC SCHOOLS MICROSOFT EXCHANGE 2010 OUTLOOK WEB APP USERS GUIDE

PANTONE ColorVANTAGE Process Simulations of PANTONE solid colors Page: 1 of 14

COLOR THEORY WORKSHEET

Using Ratios to Taste the Rainbow. Lesson Plan

A magician showed a magic trick where he picked one card from a standard deck. Determine what the probability is that the card will be a queen card?

Pantone Matching System - PMS - Color Guide Presented By Great Ideas Inc.

THE BASICS OF COLOUR THEORY

CERTIFICATION OF COMPLIANCE

Using Image J to Measure the Brightness of Stars (Written by Do H. Kim)

How can you coordinate the color in stage lighting, costumes, makeup and sets so they all work well together?

When To Work Scheduling Program

Seeing in black and white

Outlook Web App McKinney ISD 5/27/2011

EFX Keying/Alpha plugins for After Effects

Lessons 1-15: Science in the First Day of the Creation Week. Lesson 1: Let There Be Light!

PROFESSIONAL HAIR COLOR BASIC HAIR COLOR THEORY

Color Balancing Techniques

Simplify your palette

A Few Quick Tips for Using the Virtual Classroom

3-D Workshop AT A GLANCE:

PATIENT FLOSS PACKS Print Size: 1 x 1 Print Color: Blue, white, red, green, yellow, black or gold (choose up to 2) Minimum Order: 72 per item #

DETERMINING WHICH COLOR UV BEAD CHANGES COLORS THE FASTEST

Sample Table. Columns. Column 1 Column 2 Column 3 Row 1 Cell 1 Cell 2 Cell 3 Row 2 Cell 4 Cell 5 Cell 6 Row 3 Cell 7 Cell 8 Cell 9.

After you complete the survey, compare what you saw on the survey to the actual questions listed below:

Third Grade Light and Optics Assessment

Introduction to Light, Color, and Shadows

Outline. Quantizing Intensities. Achromatic Light. Optical Illusion. Quantizing Intensities. CS 430/585 Computer Graphics I

A simpler version of this lesson is covered in the basic version of these teacher notes.

RGB Workflow Key Communication Points. Journals today are published in two primary forms: the traditional printed journal and the

PANTONE Chart Builder File: MPC2000_2500_3000 Page: 1 of 14

Corporate Identity Quick Reference Guide

California Treasures High-Frequency Words Scope and Sequence K-3

HP Certification Look-up Tool (CLT) User Guide

Perception of Light and Color

UNDERSTANDING DIFFERENT COLOUR SCHEMES MONOCHROMATIC COLOUR

Color Theory for Floral Design

Overview. Family & Passenger: Wear Bright Cloth Brighter is better! That's right, the brighter your clothing the better your chances are of being seen

COOL ART WITH MATH & SCIENCE OPTICAL ILLUSIONS CREATIVE ACTIVITIES THAT MAKE MATH & SCIENCE FUN FOR KIDS! A NDERS HANSON AND ELISSA MANN

GIS Tutorial 1. Lecture 2 Map design

Please Excuse My Dear Aunt Sally

Lead Management System

At the core of this relationship there are the three primary pigment colours RED, YELLOW and BLUE, which cannot be mixed from other colour elements.

Insights Discovery Profiles. A Tour of Your Insights Discovery Profile. info.seattle@insights.com. Page 1 of 6

2014 Michigan School Accountability Scorecards: Summary Characteristics

Basic Use of the TI-84 Plus

13 PRINTING MAPS. Legend (continued) Bengt Rystedt, Sweden

Microsoft Excel 2010 Lesson 13: Practice Exercise 3

Textiles Arts and Crafts

Microsoft Office 2010: Introductory Q&As PowerPoint Chapter 3

GUITAR THEORY REVOLUTION. Part 1: How To Learn All The Notes On The Guitar Fretboard

Building Qualtrics Surveys for EFS & ALC Course Evaluations: Step by Step Instructions

A a B b C c D d. E e. F f G g H h. I i. J j K k L l. M m. N n O o P p. Q q. R r S s T t. U u. V v W w X x. Y y. Z z. abcd efg hijk lmnop qrs tuv wx yz

Cell Membrane & Tonicity Worksheet

OA3-10 Patterns in Addition Tables

2011 Volvo Color Compatibility Guide

The rest of this document describes how to facilitate a Danske Bank Kanban game.

CHAPTER 461b. SLOT MACHINE TOWER LIGHTS AND ERROR CONDITIONS TECHNICAL STANDARD. 461b.2. Slot machine tower lights and error conditions.

Lesson Plan. Set: Notecard K of KWL. What do you know about color? Students will write information about everything they know about color.

Teaching Children to Praise

Main Question 1: How and where do you or your family use the Internet - whether on a computer or a cell phone? Follow up questions for INTERNET USERS

2. How many ways can the letters in PHOENIX be rearranged? 7! = 5,040 ways.

Data representation and analysis in Excel

DIGITAL / HD GUIDE. Using Your Interactive Digital / HD Guide WAVE-123 wavebroadband.com

Solving the Rubik's Revenge (4x4x4) Home Pre-Solution Stuff Step 1 Step 2 Step 3 Solution Moves Lists

BASIC CONCEPTS OF HAIR PHYSIOLOGY AND COSMETIC HAIR DYES

ATP & Photosynthesis Honors Biology

Calculator Worksheet--page 1

Outlook Training. By Martha Williamson, CIC AVP Automation and Workflow Trainer (217) Cell

This feature is available on select devices featuring VUDU. In order to use this feature, your VUDU device must be connected to the Internet.

After a wave passes through a medium, how does the position of that medium compare to its original position?

HOWTO annotate documents in Microsoft Word

Energy - Heat, Light, and Sound

Opposites are all around us. If you move forward two spaces in a board game

ELEMENTS OF ART & PRINCIPLES OF DESIGN

Color Theory. Tips & Tricks. Why do some colors work better together than others? More available at artbeats.com. by Chris & Trish Meyer, Crish Design

Window and Door Home Safety Workbook for Kids

TEACHER S GUIDE TO RUSH HOUR

Discover what you can build with ice. Try to keep ice cubes from melting. Create colored ice for painting

Formal and informal Assessment

Facility Operations Physical Safety Guidance Document

Outlook Web Access Tutorial

High level code and machine code

Xylophone. What You ll Build

TCS DIGITAL COLOR WHEEL VERSION 4.1 USER GUIDE

Create Your Own Picture Tubes

Transcription:

COLOR WALL Boston Python Workshop

Review: Lists Create a list

Review: Lists Create a list primary = ['red', 'blue', 'yellow']

Review: Lists Create a list primary = ['red', 'blue', 'yellow'] How long is our list?

Review: Lists Create a list primary = ['red', 'blue', 'yellow'] How long is our list? len(primary)

Review: Lists Create a list primary = ['red', 'blue', 'yellow'] How long is our list? len(primary) Getting items from our list

Review: Lists Create a list primary = ['red', 'blue', 'yellow'] How long is our list? len(primary) Getting items from our list primary[1] =??? primary[-1] =???

Review: Lists Create a list of numbers

Review: Lists Create a list of numbers mynums = [0, 1, 2, 3]

Review: Lists Create a list of numbers mynums = [0, 1, 2, 3] Even easier with range

Review: Lists Create a list of numbers mynums = [0, 1, 2, 3] Even easier with range mynums2 = range(4) mynums2 = range(5) mynums2 = range(1, 4)

Review: Tuples Create a tuple

Review: Tuples Create a tuple staff= ('Jessica', 'Christine', 'Liz')

Review: Tuples Create a tuple staff= ('Jessica', 'Christine', 'Liz') How long is our tuple?

Review: Tuples Create a tuple staff= ('Jessica', 'Christine', 'Liz') How long is our tuple? len(staff)

Review: Tuples Create a tuple staff= ('Jessica', 'Christine', 'Liz') How long is our tuple? len(staff) Getting items from our tuple

Review: Tuples Create a tuple staff= ('Jessica', 'Christine', 'Liz') How long is our tuple? len(staff) Getting items from our tuple staff[1] =??? staff[-1] =???

Review: Tuples Why are tuples different from lists?

Review: Tuples Why are tuples different from lists? Cannot add or delete items in a tuple For data we don't need to change Faster! than list

Review: Dictionaries Contain keys and values

Review: Dictionaries Contain keys and values Create a dictionary

Review: Dictionaries Contain keys and values Create a dictionary favoritecolor= {'Jessica' : 'blue', 'Liz' : 'red'}

Review: Dictionaries Contain keys and values Create a dictionary favoritecolor= {'Jessica' : 'blue', 'Liz' : 'red'} How can we use keys to lookup values?

Review: Dictionaries Contain keys and values Create a dictionary favoritecolor= {'Jessica' : 'blue', 'Liz' : 'red'} How can we use keys to lookup values? favoritecolor['jessica']

Review: Dictionaries Contain keys and values Create a dictionary favoritecolor= {'Jessica' : 'blue', 'Liz' : 'red'} How can we use keys to lookup values? favoritecolor['jessica'] Why would we want this?

Review: Dictionaries Contain keys and values Create a dictionary favoritecolor= {'Jessica' : 'blue', 'Liz' : 'red'} How can we use keys to lookup values? favoritecolor['jessica'] Why would we want this? Easy and fast way to store things that are hard to remember

ColorWall Colors In the HSV color space Hue Saturation Value http://www.yafla.com/yaflacolor/colorrgbhsl.aspx

ColorWall Colors In the HSV color space Hue Saturation Value http://www.yafla.com/yaflacolor/colorrgbhsl.aspx

ColorWall Colors In the HSV color space Hue Saturation Value http://www.yafla.com/yaflacolor/colorrgbhsl.aspx But HSV colors are complicated

ColorWall Colors In the HSV color space Hue Saturation Value http://www.yafla.com/yaflacolor/colorrgbhsl.aspx But HSV colors are complicated # A dictionary of hsv values for some common colors. colors = {"black":(0, 0, 0), "white":(0, 0, 1), "gray":(0, 0, 0.5), "red":(0, 1, 1), "blue":(0.66, 1, 1), "yellow":(0.16, 1, 1), "purple":(0.85, 1, 0.5), "green":(0.33, 1, 0.5), }

Functions we write for a wall

Functions we write for a wall Describe how to color each cell in the wall

Functions we write for a wall Describe how to color each cell in the wall Let's look at SolidColorTest!

def SolidColorTest(wall): color = colors["blue"] wall.set_pixel(x, y, color) time.sleep(2)

def SolidColorTest(wall): color = colors["blue"] wall.set_pixel(x, y, color) time.sleep(2)

def SolidColorTest(wall): color = colors["blue"] wall.set_pixel(x, y, color) time.sleep(2)

def SolidColorTest(wall): color = colors["blue"] wall.set_pixel(x, y, color) time.sleep(2)

def SolidColorTest(wall): color = colors["blue"] wall.set_pixel(x, y, color) time.sleep(2)

def SolidColorTest(wall): color = colors["blue"] wall.set_pixel(x, y, color) time.sleep(2)

def SolidColorTest(wall): color = colors["blue"] wall.set_pixel(x, y, color) time.sleep(2) x = 0

def SolidColorTest(wall): color = colors["blue"] wall.set_pixel(x, y, color) time.sleep(2) x = 0

def SolidColorTest(wall): color = colors["blue"] wall.set_pixel(x, y, color) time.sleep(2) x = 0 y = 0

def SolidColorTest(wall): color = colors["blue"] wall.set_pixel(x, y, color) time.sleep(2) x = 0 y = 0

def SolidColorTest(wall): color = colors["blue"] wall.set_pixel(x, y, color) time.sleep(2)! x = 0 y = 0

def SolidColorTest(wall): color = colors["blue"] wall.set_pixel(x, y, color) time.sleep(2) x = 0 y = 0

def SolidColorTest(wall): color = colors["blue"] wall.set_pixel(x, y, color) time.sleep(2) x = 0 y = 0

def SolidColorTest(wall): color = colors["blue"] wall.set_pixel(x, y, color) time.sleep(2) x = 0 y = 1

def SolidColorTest(wall): color = colors["blue"] wall.set_pixel(x, y, color) time.sleep(2) x = 0 y = 1!

def SolidColorTest(wall): color = colors["blue"] wall.set_pixel(x, y, color) time.sleep(2) x = 0 y = 1

def SolidColorTest(wall): color = colors["blue"] wall.set_pixel(x, y, color) time.sleep(2) x = 0 y = 1

def SolidColorTest(wall): color = colors["blue"] wall.set_pixel(x, y, color) time.sleep(2) x = 0 y = 2

def SolidColorTest(wall): color = colors["blue"] wall.set_pixel(x, y, color) time.sleep(2) x = 0 y = 2!

def SolidColorTest(wall): color = colors["blue"] wall.set_pixel(x, y, color) time.sleep(2) x = 0 y = 2

def SolidColorTest(wall): color = colors["blue"] wall.set_pixel(x, y, color) time.sleep(2) x = 0 y = 2

def SolidColorTest(wall): color = colors["blue"] wall.set_pixel(x, y, color) time.sleep(2) x = 0 y =?

def SolidColorTest(wall): color = colors["blue"] wall.set_pixel(x, y, color) time.sleep(2) x = 1 y =?

def SolidColorTest(wall): color = colors["blue"] wall.set_pixel(x, y, color) time.sleep(2) x = 1 y = 0

def SolidColorTest(wall): color = colors["blue"] wall.set_pixel(x, y, color) time.sleep(2)! x = 1 y = 0

def SolidColorTest(wall): color = colors["blue"] wall.set_pixel(x, y, color) time.sleep(2) x = 1 y = 0

def SolidColorTest(wall): color = colors["blue"] wall.set_pixel(x, y, color) time.sleep(2) x = 1 y = 0

def SolidColorTest(wall): color = colors["blue"] wall.set_pixel(x, y, color) time.sleep(2) x = 1 y = 1

def SolidColorTest(wall): color = colors["blue"] wall.set_pixel(x, y, color) time.sleep(2) x = 1 y = 1!

def SolidColorTest(wall): color = colors["blue"] wall.set_pixel(x, y, color) time.sleep(2) x = 1 y = 1

def SolidColorTest(wall): color = colors["blue"] wall.set_pixel(x, y, color) time.sleep(2) x = 1 y = 2!

def SolidColorTest(wall): color = colors["blue"] wall.set_pixel(x, y, color) time.sleep(2) x = 1 y = 2

def SolidColorTest(wall): color = colors["blue"] wall.set_pixel(x, y, color) time.sleep(2)! x = 2 y = 0

def SolidColorTest(wall): color = colors["blue"] wall.set_pixel(x, y, color) time.sleep(2) x = 2 y = 0

def SolidColorTest(wall): color = colors["blue"] wall.set_pixel(x, y, color) time.sleep(2) x = 2 y = 1!

def SolidColorTest(wall): color = colors["blue"] wall.set_pixel(x, y, color) time.sleep(2) x = 2 y = 1

def SolidColorTest(wall): color = colors["blue"] wall.set_pixel(x, y, color) time.sleep(2) x = 2 y = 2!

def SolidColorTest(wall): color = colors["blue"] wall.set_pixel(x, y, color) time.sleep(2) x = 2 y = 2

def SolidColorTest(wall): color = colors["blue"] wall.set_pixel(x, y, color) time.sleep(2) x = 2 y = 2

def SolidColorTest(wall): color = colors["blue"] wall.set_pixel(x, y, color) time.sleep(2) x = 2 y = 2

That was cool! But what if we want to see more than just blue?

That was cool! But what if we want to see more than just blue? def SolidColorTest(wall): color = colors["blue"] wall.set_pixel(x, y, color) time.sleep(2)

That was cool! But what if we want to see more than just blue? def SolidColorTest(wall): color = colors["blue"] wall.set_pixel(x, y, color) time.sleep(2)

That was cool! But what if we want to see more than just blue? def SolidColorTest(wall): color = colors["blue"] wall.set_pixel(x, y, color) time.sleep(2) Let's look at DictionaryTest!

def DictionaryTest(wall): for color in ["black", "white", "gray", "red", ]: wall.set_pixel(x, y, colors[color]) time.sleep(0.5)

def DictionaryTest(wall): for color in ["black", "white", "gray", "red", ]: wall.set_pixel(x, y, colors[color]) time.sleep(0.5) # A dictionary of hsv values for some common colors. colors = {"black":(0, 0, 0), "white":(0, 0, 1), "gray":(0, 0, 0.5), "red":(0, 1, 1), }

def DictionaryTest(wall): for color in ["black", "white", "gray", "red", ]: wall.set_pixel(x, y, colors[color]) time.sleep(0.5) # A dictionary of hsv values for some common colors. colors = {"black":(0, 0, 0), "white":(0, 0, 1), "gray":(0, 0, 0.5), "red":(0, 1, 1), }

def DictionaryTest(wall): for color in ["black", "white", "gray", "red", ]: wall.set_pixel(x, y, colors[color]) time.sleep(0.5) # A dictionary of hsv values for some common colors. colors = {"black":(0, 0, 0), "white":(0, 0, 1), "gray":(0, 0, 0.5), "red":(0, 1, 1), } colors.keys() = ["black", "white", "gray", "red", ]

def DictionaryTest(wall): for color in colors.keys(): wall.set_pixel(x, y, colors[color]) time.sleep(0.5) # A dictionary of hsv values for some common colors. colors = {"black":(0, 0, 0), "white":(0, 0, 1), "gray":(0, 0, 0.5), "red":(0, 1, 1), } colors.keys() = ["black", "white", "gray", "red", ]

What if we only want some colors?

What if we only want some colors? Let's implement RainbowTest!

What if we only want some colors? Let's implement RainbowTest! Model it off of DictionaryTest, but use only some colors

def RainbowTest(wall): print "RainbowTest" # Your code here!!!

def RainbowTest(wall): print "RainbowTest" rainbow = ["red", "orange", "yellow", "green", "blue", "indigo", "purple"] for color in rainbow: wall.set_pixel(x, y, colors[color]) time.sleep(0.5)

There are a lot more to explore already!

There are a lot more to explore already! Play around with them and write your own

There are a lot more to explore already! Play around with them and write your own Change the color range in Twinkle (in more_effects.py) Change the math that controls the spacing in Checkerboards (also in more_effects.py) Change the scrolling message in Message (also in more_effects.py) Or whatever else you'd like to do!